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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Really quick easy question

Previous Thread :: Next Thread 
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
28 Mar 2012 05:59 PM
Does elseif require double ='s like if does?
Report Abuse
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
28 Mar 2012 06:00 PM
And also, does elseif require an 'end' like if and function and while true do etc.?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
28 Mar 2012 06:02 PM
Well, 'if' and 'elseif' equations just check for statements. When comparing using '=' you must use 2 of them.

if (number == 2) then
-- ...
elseif (number == 3) then
end

So yes, in the case that you are checking comparisons between 2 things.
Report Abuse
mian is not online. mian
Joined: 05 Nov 2006
Total Posts: 60
28 Mar 2012 06:03 PM
elseif does need a ==, but does not need an (Separate) end.

Sincerely,
Mian
Report Abuse
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
28 Mar 2012 06:04 PM
Kk thanks guys
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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