I am pretty new to using JSXGraph, and I'm trying to get my head around how this question – which uses JSXGraph to draw a right-angled triangle based on question variables – works:
The code used to draw the triangle is
{if(switcharoo=0,triangle(),otherway())}
I don't understand how this is doing anything, since there aren't variables called 'triangle()' or 'otherway()' defined in the question. (Although I do understand that switcharoo is a variable deciding which way round the triangle should appear.)
Can anyone shed any light on this?