Contents
Syntax
The syntax for
if{options}(condition) { //code-block } else-if(condition) { //code-block } else { //code-block }
@if{options}(condition) { //code-block } else-if(condition) { //code-block } else { //code-block }
Note: Single-line code blocks do not need to be enclosed in parentheses.
Description
The
Note:
Note: If not writing to the output file
@if{!o}(condition) { # block }!
Options
The following options are available for
option | description |
---|---|
parse code-block with |
|
parse code-block with |
|
do not add output | |
add output | |
add scope | |
do not add scope | |
option | description |
f++ example
Example of
- int i=0
- if(i < 10)
- console("this will print")
- else-if(i>10)
- console("this will not print")
- else
- console("this also will not print")
n++ example
Example of
- @int i=0
- @if(i < 10)
- @console("this will print")
- else-if(i>10)
- @console("this will not print")
- else
- @console("this also will not print")