Re: Is there a name for this type of code?

2020-04-23 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


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?

2020-04-23 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


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?

2020-04-23 Thread AudioGames . net Forum — Developers room : nolan via Audiogames-reflector


  


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?

2020-04-23 Thread AudioGames . net Forum — Developers room : tunmi13 via Audiogames-reflector


  


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