is_in_subapp

NAML documentation   Watch a video
   Usages of this macro
... in app.naml
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<macro name="is_in_subapp" requires="node,node_list">
    <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
        <condition1>
            <n.is_post
Binary
Namespace: NodeNamespace
/>
        </condition1>
        <condition2>
            <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
                <condition1>
                    <n.has_loop_node
Binary
Namespace: NodeList
/>
                </condition1>
                <condition2>
                    <n.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.equals
Binary
Namespace: NodeNamespace
Parameters: node
.loop_node
Binary
Namespace: NodeList
Parameters: do
/>
                </condition2>
            </n.both>
        </condition2>
    </n.both>
</macro>