is_preview

NAML documentation   Watch a video
   Usages of this macro
... in edit_post.naml
156
157
158
159
160
161
162
163
<macro name="is_preview">
    <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="is_preview">
        <then>
            <n.global_set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="is_preview"><n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.get_parameter
Binary
Namespace: RequestNamespace
Parameters: name
 name="preview" /></n.global_set_var.>
        </then>
    </n.if.not.global_is_var_set>
    <n.global_var
Binary
Namespace: BasicNamespace
Parameters: name
 name="is_preview" />
</macro>