Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
variables [2024/07/12 08:37] – external edit 127.0.0.1variables [2025/02/17 15:10] (current) – try to fix strange layout/text "(exceptions ...)" appearing in italics without blank doll
Line 84: Line 84:
 STR(3)            This is an example for strings STR(3)            This is an example for strings
 </code> </code>
-As a general rule, string variables are replaced by their value only if they are preceded by a dollar ()(exceptions:invariabledefinitions,onSHOWcards,andinlogicalexpressionsonIFcards,thedollarisoptional).Thisisaprecautiontoavoidcommandswhichhavethesamenameasavariablebeinginterpretedasvariables.VariablesmayalsoappearonTEXTorTITLEcardsorinstrings,butmustbeprecededby in these cases. Example:+As a general rule, string variables are replaced by their value only if they are preceded by a dollar ($)  
 +(exceptions: in variable definitions, on ''SHOW'' cards, and in logical expressions on ''IF'' cards, the dollar is optional). This is a precaution to avoid commands which have the same name as a variable being interpreted as variables. Variables may also appear on ''TEXT'' or ''TITLE'' cards or in strings, but must be preceded by $ in these cases. Example:
  
 <code> <code>