if
Synopsis:
(if condition
statement1
else
statement2)
Description:
If a certain condition
condition is met (evaluated to
true) executes statement
statement1, otherwise executes statement
statement2.
Example:
(if (> (property "stones") 0)
(return (property "stones")))
(if (= (property "stones") 0)
(update property "stones" 1)
else (do
(new var temp as (property "stones"))
(set var temp to (- temp 1))
(update property "stones" temp)
end))
Contact:
Fulvio Frapolli (
fulvio . frapolli //at// unifr . ch),
Amos Brocco (
amos . brocco //at// unifr . ch)
* Remove spaces and replace //at// with @