Saltar a contenido

exit.ifemptyvar

El comando exit.ifemptyvar se puede utilizar para comprobar si una variable se ha establecido correctamente. El script finaliza con el código de salida 0 si la variable está vacía.

Sintaxis

exit.ifemptyvar {Variable}

Ejemplo

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
}