Executes one of two Help macros depending on whether a marker exists. It uses the IsMark macro to make the test. You can also use a DLL function as a condition for this macro.
Syntax
IfThenElse(IsMark("marker-text"), "macro1", "macro2")
Parameter | Description |
marker-text | Text marker previously created by the SaveMark macro. The IsMark macro tests the marker you specify. The marker text must be enclosed in quotation marks. |
macro1 | Windows Help executes macro1 if the test returns a nonzero marker value. This macro must be enclosed in quotation marks. Separate multiple macros in the string with semicolons (;). |
macro2 | Windows Help executes macro2 if the test returns a marker value of zero. This macro must be enclosed in quotation marks. Separate multiple macros in the string with semicolons (;). |
Example
The following macro jumps to the topic with the “man_mem” context string if the SaveMark macro has set a marker named Managing Memory. If the marker does not exist, the macro jumps to the Contents topic in the TRB.HLP file:
IfThenElse(IsMark("Managing Memory"), "JumpID(`trb.hlp', `man_mem')",
"JumpContents(`trb.hlp')")
See Also
DeleteMark, GotoMark, IfThen, IsMark, Not, SaveMark