|
Xiija Beginner
Joined: 24 Apr 2018 Posts: 10
|
Posted: Wed Nov 17, 2021 4:23 pm
basic expression help |
this is returning "less than" .. why plz?
#if ( 1 > 0 ) {#say greater} {#say less than}
i have even tried
#if ( (1 > 0) ) {#say greater} {#say less than}
ETA:
apparently zmud hates spaces?
#if (1 > 0) {#say greater} {#say less than} works :P |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Wed Nov 17, 2021 7:13 pm |
It's a matter of implicit concatenation.
" 1" is a string
Comparing strings to numbers like that returns false.
That issue is no longer present in CMUD. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|