lundi 18 octobre 2021

If-else and default condition in groovy script

Is there any way to add default condition into if else loop. If X is true then operation1 executes else operation2. If X is null then default operation gets executed.

if (x)
{ operation1 }
else
{ operation2 }
default
{default operation}

Aucun commentaire:

Enregistrer un commentaire