SphereCommunity
isempty - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: isempty (/Thread-isempty)



isempty - Rizz - 05-14-2015 09:32 AM

What's wrong with

PHP Code:
IF (<src.age> < 10) && (<src.create> > 60)
    IF <
isempty <src.account.tag0.email>>
        
src.dialog d_p_setemail
    
ENDIF
ENDIF 



RE: isempty - Extreme - 05-14-2015 01:21 PM

Tag0 returns 0 if empty, so you can't use <isempty <tag0.x>>


RE: isempty - Coruja - 05-14-2015 07:00 PM

indeed Smile
<TAG0.Something> will return 0 if the tag is not set, so it will never be empty

but you have many others ways to check if the tag is set
  • (<isempty <TAG.Something>>)
  • (<TAG0.Something> > 0)
  • (<TAG0.Something> != 0)
  • ...



RE: isempty - Rizz - 05-14-2015 07:59 PM

Thx Big Grin