I think the way to do this is to use #show tooltip and put the conditionals in the /cast part of the macro. This used to work for me.