View Single Post
Old
  (#14)
jv_map is Offline
Senior Member
 
Posts: 238
Join Date: Sep 2002
Location: Where I wanted to go today
  Send a message via MSN to jv_map  
Default 04-09-2003, 04:42 AM

if(condition)
{
// <-- execute this if true (condition is 1)
}
else // optional
{
// <-- execute this if false (condition is 0)
}

example
[code:fad00]
if($player.health < 50)
{
$player iprint "ouch!"
}
[/code:fad00]
In this example you don't strictly need the curly braces as there's just one line below the if.
  
Reply With Quote