Quantcast
Channel: UNIX and Linux Forums - AIX
Viewing all articles
Browse latest Browse all 373

Problems if the else end if

$
0
0
I have the following code

Code:

VarSalida = "52"
VarSalidaCtl = ""

echo "VarSalida: $ VarSalida"
echo "VarSalidaCtl: $ VarSalidaCtl"


if [$ VarSalida == $ VarSalidaCtl]
***** then
echo "true"
***** else
********** echo "false"
***** fi

the problem is this

Code:

test [8]: VarSalida: 0403-012 A test command parameter is not valid.
is not able to compare with null value and I nesecito so someone can help me

Viewing all articles
Browse latest Browse all 373

Trending Articles