Changes

Variable Syntax

1,180 bytes added, 15 December
Overview
=Overview=
The Variable Processor in SmartSimple dynamically replaces variable references e.g.
 
<pre>{{firstname}}</pre>
* During this transition, both syntaxes can be used while the new format undergoes testing and refinement.
{| class="wikitable"|-||Old Syntax||New Syntax|-||<pre>@fieldname@</pre>||<pre>{{fieldname}}</pre>|-||<pre>@fieldname.value@</pre>||<pre>{{fieldname.value}}</pre>|-||<pre><ssEncrypt>test</ssEncrypt></pre>||<pre>{{ssEncrypt(test)}}</pre>|-||<pre><ssTranslate>test</ssTranslate></pre>||<pre>{{ssTranslate(test)}}</pre>|-||<pre><ssEscape>test</ssEscape></pre>||<pre>{{ssEscape(test)}}</pre>|-||<pre><!--@sslogic(condition)--></pre>||<pre>{{ss_if(condition)}}</pre>|-||<pre><!--@else if(condition)--></pre>||<pre>{{ss_elseif(condition)}}</pre>|-||<pre><!--@else--></pre>||<pre>{{ss_else}}</pre>|-||<pre><!--end--></pre>||<pre>{{ss_endif}}</pre>|-||<pre><!--@sscalculation(expression)--></pre>||<pre>{{ss_eval(expression)}}</pre>|-||<pre>@ssGet(...)@</pre>||<pre>{{ssGet(…)}}</pre>|-||<pre>@system.fieldname@</pre>||<pre>{{system.fieldname}}</pre>|-||<pre>@xml.fieldname.nodename@</pre>||<pre>{{xml.fieldname.nodename}}</pre>|-||<pre>@parent.fieldname@</pre>||<pre>{{parent.fieldname}}</pre>|-||<pre>@ReportProperty(...)@</pre>||<pre>{{ReportProperty(…)}}</pre>|-||<pre>@parent.[# … #]@</pre>||<pre>{{parent.[# … #]}}</pre>|}
[[Category:Variables]]
Smartstaff, administrator
4,206
edits