Confusing Behavior


#1

I barely know how to explain this, but I’m wondering if there’s a nested if else if else limit? so my program looks like code below (may have to reformat if it gets messed up), so I’m seeing the text in the listener (“Do I get here”) correctly prior to calling my checkEvenOdd function, which is a simple modulus check of even or odd, but regardless of even or odd state it should still print “Even” or “Odd” to the console/Listener. It does NOT print this to the console, it’s as if it just hangs there. This if else block below is tied to a dropdownlist on selected event. Whenver I select another option in the drop down, it will then display the “Even” or “Odd” text in the console. This baffles me to no end. Any ideas?

if () then
else (
if () then
else (
if () then
else (
if () do (
format “Do I get here” --Yes this prints to the console
checkEvenOdd(num)
)
)
)
)


#2

I figured it out, some ancient documention was using format “…” to write to console, idk why but the 2019 documentation was using print “…” so mystery solved. btw why can’t i edit my topic?