Re: How to check if a class instance has a null value
Re: How to check if a class instance has a null value Thanks, I figured another way to do what I was trying to do without this, but it's useful to know for the future. URL: http://forum.audiogames.net/viewtopic.php?pid=242893#p242893 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: How to check if a class instance has a null value
Re: How to check if a class instance has a null value Pretty much that, except you need to put the at sign in front of it.if(@objects[0]==null)Though personally, order of operations when it comes to brackets and dots always makes me nervous enough that I'd put parentheses around it, like:if([ a-t ](objects[0])==null)But I don't know if that's necessary or if I'm just paranoid. URL: http://forum.audiogames.net/viewtopic.php?pid=242886#p242886 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
How to check if a class instance has a null value
How to check if a class instance has a null value So what's the syntax in bgt to check if a class object has a null value or not? It's not covered in the language tutorial.Here's an example of what I'm trying to doclass object{//bunch of shtuff goes here}object@[] blah;blah.resize(5);void main(){if(blah[0]==null){alert("Booya", "Booya, this entry is null.");} URL: http://forum.audiogames.net/viewtopic.php?pid=242842#p242842 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector