Hi All,
Small can some please let me know hpw to use logical OR in csh scripts, below is the code line which is not running and i don't know why it is entring in "if" statement, even though i'm inputing value "1",
set ans = $<
echo $ans
if ( $ans != 1 || $ans != "2" ) then
echo "Invalid option selected. Exixting from the from the script $0 ."
exit 0
endif
It goes in if clause and then exits from the script
Any suggestions pls .???