Parameters on condition in CATIA v5?

Hello everyone ! my question is to know if there is a possibility to add parameters in CATIA v5 on conditions like in programming( if, else......), for example:
if a >= 4:
   b = a + 1

else:

    b= a-1 

thank you in advance.

​​​​​​​​​​​​​​