Conditional If/Then/End | |
One of the most important custom action. These two actions mark the beginning and end of a conditional block of actions: an If block. If the condition specified in the "Begin If" action is true, the actions inside the If block are executed; if the condition is false, the actions inside the If block are not executed.
DescriptionTo start an If block, add a "Begin Conditional If/Then" action to the action list. After having set its properties, add all actions depending on the condition. To close the If block, add a "End Conditional If/Then" action. Your If block is now operational. The If block is the best mean to evaluate the value of variables. For example you can check the result of custom actions (that return a variable) as you can see below:
About the "Begin Conditional If/Then" actionThis action starts an If block.
About the "End Conditional If/Then" actionThis action closes an If block statement. No properties. Some restrictions: Avoid using multiple incremented Begin If blocs (although Paquet Builder supports them). Especially if you use "Go to" statements inside such If blocks. For instance: ENDIF The script engine used by the package supports such constructions but it may have unpredictable effects if you also add goto statements inside such incremented "if blocks". However inserting some goto statements into one IF/ENDIF block works correctly. Paquet Builder Help - Copyright © G.D.G. Software. All rights reserved. |