Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can we use a condition in SET in the script:
if( "CONDITION",SET DateFormat ='M/D/YYYY' , SET DateFormat ='MM-DD-YYYY' )
Thanks,
Nima
May be you should use this
LET DateFormat = if( "CONDITION", 'M/D/YYYY' , 'MM-DD-YYYY' );
Or
If (Condition) Then
SET DateFormat ='M/D/YYYY';
Else
SET DateFormat ='MM-DD-YYYY';
End If;
Hope It Helps
Celambarasan