IncludeIf command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:


{|
{|
|width="50%"| '''Action:'''
|width="125px"| '''Action:'''
|width="50%"|
|width="575px"|
<span class="f_Para">Conditionally calls another Debugger [[Using Debugger Macros|macro]]. The specified macro is included if and only if the state (&quot;True&quot; or &quot;False&quot;) of a specified [[Working with macro variables|macro variable]] is </span><span class="f_Monospace">True</span><span class="f_Para">. If the state of the macro variable is </span><span class="f_Monospace">False,</span><span class="f_Para"> no action is taken and the macro continues. </span>
<span class="f_Para">Conditionally calls another Debugger [[Using Debugger Macros|macro]]. The specified macro is included if and only if the state (&quot;True&quot; or &quot;False&quot;) of a specified [[Working with macro variables|macro variable]] is </span><span class="f_Monospace">True</span><span class="f_Para">. If the state of the macro variable is </span><span class="f_Monospace">False,</span><span class="f_Para"> no action is taken and the macro continues. </span>



Latest revision as of 21:24, 30 January 2023

Action:

Conditionally calls another Debugger macro. The specified macro is included if and only if the state ("True" or "False") of a specified macro variable is True. If the state of the macro variable is False, no action is taken and the macro continues.

If the variable is 0 or a zero length (null) string, or if it is undefined, its state is considered to be False. For all other values, its state is considered to be True.

Syntax:

includeIf &var macro

where:

  • &var is a macro variable that may or may not already exist.
  • macro is the unquoted name of a macro.
Scope: Allowed only in Debugger macros
Client menu: --
Introduced: Build 57