| 1 | package montimath.vanilla; |
| 2 | |
| 3 | script If3 |
| 4 | Q cond1 = 1; |
| 5 | Q cond2 = -1; |
| 6 | Q result = 0; |
| 7 | B bool = cond1 == cond2; |
| 8 | if bool |
| 9 | result = 1; |
| 10 | elseif bool || cond2 < 0 |
| 11 | result = -1; |
| 12 | else |
| 13 | result = 0; |
| 14 | end; |
| 15 | end |
| 1 | package montimath.vanilla; |
| 2 | |
| 3 | script If3 |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | if |
| 9 | |
| 10 | elseif |
| 11 | |
| 12 | else |
| 13 | |
| 14 | end; |
| 15 | end |