generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » Let's Make a Deal
Home Search
 

i now know how to script without using if statements

Previous Thread :: Next Thread 
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Jan 2015 03:23 AM
next step conquer the world
Report Abuse
Nindoz is not online. Nindoz
Joined: 15 Mar 2012
Total Posts: 21968
09 Jan 2015 03:23 AM
hi jswag
Report Abuse
Voxio is not online. Voxio
Joined: 05 Nov 2006
Total Posts: 865
09 Jan 2015 03:24 AM
how? please tell me, I'm interested.
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Jan 2015 03:24 AM
hi dad
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Jan 2015 03:26 AM
@vox

use 'and' and 'or'

using if statements it'd be

local wat = 0.69

if wat > 0.5 then print ('wat > 0.5')
else print ('wat < 0.5')
end

but without it, itd be

local wat = 0.69

print (wat > 0.5 and 'wat > 0.5' or wat < 0.5 and 'wat < 0.5')

Report Abuse
Voxio is not online. Voxio
Joined: 05 Nov 2006
Total Posts: 865
09 Jan 2015 03:26 AM
that's too confusing, wat?

if statements ftw
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
09 Jan 2015 03:29 AM
local wat = 0.69

print (wat > 0.5 and 'wat > 0.5' or wat < 0.5 and 'wat < 0.5')


wat > 0.5 and 'wat > 0.5' means

first it checks if wat > 0.5, if it does, then the 'and' can continue on

once it continues on, it prints 'wat > 0.5'
but if wat doesnt > 0.5, it wont continue to the next 'and'


and whenever u do an if statement, if the if is false, it checks for an 'or'

so if wat doesnt > 0.5, it will go to the 'or' and check for whatever is after the or
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image