alternate

NAML documentation   Watch a video
   Usages of this macro
... in utilities.naml
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
<macro name="alternate" parameters="var, first_value, second_value">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.global_is_var_set
Binary
Namespace: BasicNamespace
Parameters: name
 name="[n.var/]">
        <then.global_set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
 name="[n.var/]" value="[n.true
Binary
Namespace: BasicNamespace
/]" />
    </n.if.not.global_is_var_set>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.global_var
Binary
Namespace: BasicNamespace
Parameters: name
 name="[n.var/]">
        <then.first_value/>
        <else.second_value/>
    </n.if.global_var>
    <n.global_set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="[n.var/]">
        <n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.global_var
Binary
Namespace: BasicNamespace
Parameters: name
 name="[n.var/]" />
    </n.global_set_var.>
</macro>