This question already has an answer here:
i want to realize an if in this way :
var=expression; If[var==0, Print[Hello]]; If[var!=0, Print[Hey]];
The system doesn't know if
expression is equal to zero. But i know that it is different from zero because it is symbolic. Is there a way to pass the first if with a symbolic variable?