set_parameter_char_if_found

NAML documentation   Watch a video
   Usages of this macro
... in url_mapper.naml
15
16
17
18
19
20
21
22
23
24
25
26
<macro name="set_parameter_char_if_found" parameters="name,group,char,value" requires="url_mapper,regex">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.did_find
Macro
Requires: regex
Parameters: group
 group="[n.group/]">
        <then>
            <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name='found'><n.found
Binary
Namespace: RegexNamespace
Parameters: group
 group="[n.group/]"/></n.set_var.>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.char/]" value2="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='found'/]">
                <then.set_parameter
Binary
Namespace: UrlMapperNamespace
Parameters: name, value
. name="[n.name/]">
                    <n.value/>
                </then.set_parameter.>
            </n.if.equal>
        </then>
    </n.if.did_find>
</macro>