[SOLVED] What Does a Question Mark Do?

C

chidsuey

Guest
As in with this code:

show_debug_message("Event = " + async_load[? "event_type"]);

It's nearly impossible to find anything searching for "game maker question mark" other than ternary operators which apparently are not supported. Thanks!
 

chamaeleon

Member
It is an "accessor" which simplifies writing code with data structures. Look up the word in the help and you will find there are others as well. Question mark for maps, pipe for lists, hash for grids and ampersand for arrays.
 
Top