Knowledgeware is naming for using functions (math), parameters, rules etc.... or maybe better, tools where you drive with math and logic
I would try to set up a parameter of angle type and control it with a rule, if the alfa exceeds 90deg the 180-alfa*-1