That FN Ninja
Member
I realize the "!" operator is for boolean expressions, but is there a similar way to do the same thing with map contents? Like a "if map does not contain" option.
for example:
I'm currently using:
but it's not that pretty and I'm trying to clean up my code a little. Any suggestions?
for example:
Code:
if(!my_map contains xyz)
{ ...do this... }
I'm currently using:
Code:
if(my_map contains xyz){}
else{ ...do this... }
but it's not that pretty and I'm trying to clean up my code a little. Any suggestions?