Computation Layer - define a variable based on inputs

I want to make a variable based on 3 inputs:
this is what I need i just don’t know how to write in:

m1=input1
m2=input2
m3=input3

A=(0,1)
B=(1,0)
C=(-3,4)

Response=
when (m1=A or m1=B or m1=C) and
(m2=A or m2=B or m2=C) and
(m3=A or m3=B or m3=C) and
(m1 != m2 and m1 != m3 and m2 != m3)
“something”
otherwise “something else”

m1=input1.latex
m2=input2.latex
m3=input3.latex

A=`(0,1)`
B=`(1,0)`
C=`(-3,4)`

Response=
when (m1=A or m1=B or m1=C) and
(m2=A or m2=B or m2=C) and
(m3=A or m3=B or m3=C) and
(not(m1= m2) and not(m1 = m3) and not(m2 = m3))
"something"
otherwise "something else"
2 Likes

Thank you! I didn’t know some of the commands, Im still learning

You had most of it correct. Comparisons just need to be the same type. Inputs are an object I believe. If you want to compare the latex, use input.latex. If you want a value, use input.numericValue, which can be imprecise for a variety of reasons, but can be remedied with other methods.

1 Like