I'm trying to compare 3 integers and pick the highest number.
The result is 20 instead of 29 when I run the script below.
What am I doing wrong?
Variable Set Integer %N1% to 20
Variable Set Integer %N2% to 29
Variable Set Integer %N3% to 15
If variable %N1% <= variable %N2%
Switch (N2)
End Switch
Variable Modify Integer : Copy %N2% to %N10%
End IF
If variable %N2% <= variable %N3%
Switch (N3)
End Switch
Variable Modify Integer : Copy %N3% to %N10%
End IF
If variable %N3% <= variable %N1%
Switch (N1)
End Switch
Variable Modify Integer : Copy %N1% to %N10%
End IF
Text Box Display: end