CSH では、変数の存在のテストとその値のテストを同じ if 節でネストすることは可能ですか?
#!/bin/csh
# This seems to work...
if ( $?VAR ) then
echo "VAR exists"
if ( $VAR == true ) then
echo "VAR is true"
endif
endif
# I want something more like this:
if (( $?VAR ) && ( $VAR == true )) then
echo "VAR exists and is true"
endif