Re: Is there a name for this type of code?
Re: Is there a name for this type of code? That is called the ternarie (sorry can't spell) opperator URL: https://forum.audiogames.net/post/521911/#p521911 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Is there a name for this type of code?
Re: Is there a name for this type of code? Thanks! URL: https://forum.audiogames.net/post/521886/#p521886 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Is there a name for this type of code?
Re: Is there a name for this type of code? That's called the ternary operator. URL: https://forum.audiogames.net/post/521879/#p521879 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Is there a name for this type of code?
Is there a name for this type of code? Hi guys,So I've been using some code in my games for awhile, that goes something like this. Is there a name for it? Example below.int cheeseburgers=random(1,10);void main(){speak("You have "+(cheeseburgers>=1?"plenty of cheeseburgers to eat":"to go buy more cheeseburgers! You're running low!");Any help would be appreciated. URL: https://forum.audiogames.net/post/521871/#p521871 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector