RuneScape:Sandbox/jsForm

{{#vardefine:A|{{{a}}} {{#vardefine:B|{{{b}}}

{{#vardefine:C|{{#expr:{{#var:A}} + {{#var:B}} }} }}

{{#vardefine:aIsInteger|{{#ifexpr: floor{{#var:A}} = ceil {{#var:A}} | Yes | No }} }} {{#vardefine:bIsInteger|{{#ifexpr: floor{{#var:B}} = ceil {{#var:B}} | Yes | No }} }} {{#vardefine:cIsInteger|{{#ifexpr: floor{{#var:C}} = ceil {{#var:C}} | Yes | No }} }}

{{#vardefine:aIsPositive|{{#ifexpr: {{#var:A}} > 0 }} | Yes | No }} {{#vardefine:bIsPositive|{{#ifexpr: {{#var:B}} > 0 }} | Yes | No }} {{#vardefine:cIsPositive|{{#ifexpr: {{#var:C}} > 0 }} | Yes | No }}

{{#vardefine:aIsEven|{{#ifexpr: mod {{#var:A}} 2 | No | Yes }} }} {{#vardefine:bIsEven|{{#ifexpr: mod {{#var:B}} 2 | No | Yes }} }} {{#vardefine:cIsEven|{{#ifexpr: mod {{#var:C}} 2 | No | Yes }} }}