Difference between revisions of "Template:OBSE Format Specifiers"
Jump to navigation
Jump to search
m
setnameEx fixed
imported>Quetzilla m |
imported>Quetzilla m (setnameEx fixed) |
||
Line 31: | Line 31: | ||
'''%e''' - Provides a workaround for the script compiler's refusal to accept an empty string as a command argument. | '''%e''' - Provides a workaround for the script compiler's refusal to accept an empty string as a command argument. | ||
* Example: | * Example: | ||
SetNameEx "" | SetNameEx "" object ; attempts to remove an object's name, but won't compile | ||
SetNameEx "%e" ; sets the name to an empty string | SetNameEx "%e" object ; sets the name to an empty string | ||
'''%{...%}''' - Conditionally displays or omits the bracketed portion of the format string based on a boolean value. Accepts a variable - if the value of the variable is zero, all text and parameters up to the matching right bracket will be ignored. Otherwise the bracketed text will be displayed. | '''%{...%}''' - Conditionally displays or omits the bracketed portion of the format string based on a boolean value. Accepts a variable - if the value of the variable is zero, all text and parameters up to the matching right bracket will be ignored. Otherwise the bracketed text will be displayed. |