KB-126736: exit.ifemptyvar

exit.ifemptyvar

The command exit.ifemptyvar can check whether a variable was correctly used. The script ends with the exit code 0, if the variable is empty.

Syntax:

exit.ifemptyvar `<Variable>`

Example

Function ScriptBeforeEdit
{
...
// get selected file from component
$def::var1 = $vdog::specific->WorkingDir$vdog::specific->SelectedFile
// exit with ok (exitcode = 0) and continue with default logic
exit.ifemptyvar $def::var1
// do something with the selected file
}

Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center