IronNoob

Please login or register.

Login with username, password and session length
Advanced search  

News:

Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.

Author Topic: SML ROBLOX Scripting Tutorial 4: If Statements  (Read 523 times)

0 Members and 1 Guest are viewing this topic.

shedletsky

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1152
    • View Profile
SML ROBLOX Scripting Tutorial 4: If Statements
« on: August 03, 2011, 02:39:37 pm »

Roblox Tutorial Scripting[4] If Statements

Post any questions you have here - I'm trying to compose a FAQ for the ROBLOX wiki (I and maybe others will also answer them).
Logged
John Shedletsky on Twitter Counter" width="88" height="26" border="0

Pinkie Pie

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 377
  • Lrn2FaceUrFears
    • View Profile
    • My profile
Re: SML ROBLOX Scripting Tutorial 4: If Statements
« Reply #1 on: November 08, 2011, 05:07:01 pm »

if ironnoob => robloxforums then
print("yus")

yus
Logged

moonBEAR

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 8711
  • HI.
    • View Profile
    • twitter
Re: SML ROBLOX Scripting Tutorial 4: If Statements
« Reply #2 on: November 13, 2011, 04:45:31 am »

if ironnoob => robloxforums then
print("yus")

yus
Logged
inactive since apr 2013
now on wagn.eu

Nick00788

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4103
  • Another post!?
    • View Profile
Re: SML ROBLOX Scripting Tutorial 4: If Statements
« Reply #3 on: February 01, 2012, 10:55:44 am »

if post.ironnoob == 1 then post

end


 
Logged
-Nick
I has posted a post on a lamp post then the mail post came and took the post. -Nick
Top 5 poster: #4 (2011-2012)

Former Moderator on GameplayerHD

VictoriousMaxPower

  • Newbie
  • *
  • Offline Offline
  • Posts: 8
  • Ohaider!
    • View Profile
    • The Incredible Maze (TIM)
Re: SML ROBLOX Scripting Tutorial 4: If Statements
« Reply #4 on: June 26, 2012, 12:04:44 pm »

With the tutorial, don't forget that you don't always have to use '=='.
For example, you can compare numbers:

 if 0 < 1 then (If 0 is smaller than 1 then...)
 if 0 <= 1 then (If 0 is smaller than or equal to 1 then...)
 if 1 > 0 then (If 1 is smaller than 0 then...)
 if 1 >= 0 then (If 1 is smaller than or equal to 0 then...)
 
You can do a whole bunch of things with it.
Logged
Please test this out if you play ROBLOX:

awas3

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 77
    • View Profile
Re: SML ROBLOX Scripting Tutorial 4: If Statements
« Reply #5 on: April 01, 2013, 01:02:24 pm »

Amazing tutorial!
Logged
~A3~
 

Page created in 0.089 seconds with 22 queries.