Writing Joystick Code: Part 3: Difference between revisions

No edit summary
Line 87: Line 87:


We write then as {, and endif as }.
We write then as {, and endif as }.
And each "action" is terminated by a semicolon ;
And each "action" is terminated by a semicolon:
 
<syntaxhighlight lang="php">
 
if (condition)
{ # the opening curly brace means THEN
  action;
} # the closing curly brace means ENDIF, i.e. end of this block
 
</syntaxhighlight>