Hi doti,
I forget to include the code used for the check. It's a slight modification of the code-snipped lifeinplymouth submitted, mainly without the while-loop.
Checking for null-value, works (if condtion met) in 10.01.2018, doesn't work in 03.03.2018
Code:
def subid=0
def done = false
subid=getRandom(999999999)
if(receiveString("enforced_chastity."+subid)==null){ done=true }
else{show(receiveString("enforced_chastity."+subid))}
show("enforced_chastity."+subid+" x "+done)
Checking for string containing 'null', works in 03.03.2018 but doesn't work in 10.01.2018
Code:
def subid=0
def done = false
subid=getRandom(999999999)
if(receiveString("enforced_chastity."+subid)=="null"){ done=true }
else{show(receiveString("enforced_chastity."+subid))}
show("enforced_chastity."+subid+" x "+done)
Tracing variables with some development-tools showed in the 10.01.2018 version a null-value is returned while the 03.03.2018 it's string with a length of 4.
Although it could be worked around by using something like the code below, I guess there's some glitch.
Code:
if((receiveString("enforced_chastity."+subid)==null) || (receiveString("enforced_chastity."+subid)=="null"))
Regards
cgut2001