Answering this one despite being old, because this is the first Google hit, and in case anyone comes looking for it, they're likely to end up here.
The manual might say it's impossible, but instead of a single if, the same functionality can be just achieved with oppositely formed ifs:
if ("a" =~ "b") echo "wrong"; if ("a" !~ "b") echo "right"
Same can be applied in aliases:
alias blabla 'if ("\!:1" =~ "bla*") echo "chat"; if ("\!:1" !~ "bla*") echo "quiet"'
And yes, after a decade+ of writing small stuff in tcsh, because it's used for just about anything, the "don't write in csh" suggestion should come with a ton of disclaimers, or better formed like "don't write serious scripts in csh". When it is your shell because other shells aren't supported in the relevant industry almost anywhere, these patronizing responses aren't doing anything useful.
csh
. STFW for csh considered harmful then switch (usingchsh
) to some better shell likebash
, zsh or fish – Subtype