if Condtion does not work

hi :slight_smile:

this code not work in c shell

	@ f =$<
	if ( ( $f != 50 ) || ( $f != 2 ) ) then
echo "error "

endif

Do I find assistance
:confused:

I think what you want is the logical and &&. not the logical or ||

@ f =$<

if ( ( $f != 50 ) && ( $f != 2 ) ) then
   echo "error "
endif