MyBB Hacks

Full Version: How to use conditionals to check for NULL in Xthreads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to use conditionals to check for NULL in Xthreads? I would like to check for NULL values in Xthreads and then do somthing else

thanks

edit

Quote:<if $GLOBALS['threadfields']['key']!=0 then>

does NOT work?
What null values?

If empty, XThreads will use the blank value in that variable, if you've set one.
yes I have set the blank value, and I am using that blank value elsewhere....

BUT i need to check if the initial field is empty or not

eg. User Avatar, if not filled, then use default, BUT in another location, i need to check for the user Avatar, if present then display it and if NOT to display NOTHING, no default avatar either
Try

Code:
<if $GLOBALS['threadfields_x']['key']['num_values']!=0 then>

whats the X and the num_values? where do i find those?

thanks in advance

edit: works thank you
Reference URL's