| 09-29-2004, 09:12 PM | #1 |
I am just starting my first map with JASS and I have a really elementary question. I have a function with 5 if (condition) do (action) my problem is this: if the IF is true I want action 1, 2, and 3 executed. likewise i want the same thing for all 5 if statements but i don't know the correct syntax or methodology to put multiple actions into a single if statement |
| 09-30-2004, 05:23 AM | #2 |
The syntax for an if/then block is: Code:
if (Condition) then
Action1
Action2
...
else
Action3
Action4
...
endifThe else part is optional and there is no limit to how many actions you can put there. |
