Webtags (preserving history): Difference between revisions

m
Line 115: Line 115:
<pre>integer_variable_name=parseInt(string_variable_name,10)</pre> type conversion
<pre>integer_variable_name=parseInt(string_variable_name,10)</pre> type conversion
*Alternatively, in most script languages, apply '*1', i.e. multiply by one, to implicitly convert the tag from string to base 10 number.
*Alternatively, in most script languages, apply '*1', i.e. multiply by one, to implicitly convert the tag from string to base 10 number.
*Another alternative is to add zero when a web tag is being assigned to a script variable, this is used in scripts where the web tag being used is not available in all versions of Cumulus. Adding 0 means that if the web tag is not recognised, the script is still able to give a variable in its language some value and won't fail because that variable is undefined. If the web tag is available, the true value of that web tag is still assigned to the variable.


== Web Tag Differences Between Cumulus 1 and MX builds ==
== Web Tag Differences Between Cumulus 1 and MX builds ==
5,838

edits