hexagon logo

Using PROBECOMP ON/OFF

I need to turn PROBECOMP ON/OFF in my program. When I use PROBECOMP in a IF command the program only recognizes the last PROBECOMP command if it is in the IF statement or not. Is there a way to switch PROBECOMP ON/OFF in an IF statement?