Hi,

In the screenshot, please have a look at the different results at the two red arrows.

Why is the first code block returning a value and the second codeblock returning null?

Both seem to be executing the same line of code?

Is there a mistake in the definition code block?

definition code underneath

```
def check (X,Y,T){
return = [Imperative]{
if(T){
if(Y>0){
return = Math.Atan(X/Y)+180;
}
else{
return = Math.Atan(X/Y);
};
}
else {
if(Y>0){
return = Math.Atan(X/Y)+90;
}
else{
return = Math.Atan(X/Y)-90;
};
}
}
};
```