Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how do i do this?
set v1='x';
if $(v1)='x' then
set v2='y';
end if
is it possible?
Hi,
You are almost there, just don't expand the variable
set v1='x'; if v1 ='x' then set v2='y';end if
Hope that helps.
Hi,
You are almost there, just don't expand the variable
set v1='x'; if v1 ='x' then set v2='y';end if
Hope that helps.
Or, expand the variable but surround it with quotes:
if '$(v1)' = 'x' then
thank you,
just to understand, in general what is the difference between writing $(v1) and v1 ?