• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code New keyword ,,default"

T-bond

Member
I just found out there is a ?new? keyword: default.
What is it for?
Because there is not in the documentation's Keywords page.
Keyword - default.png
 

T-bond

Member
Not new at all. It's used for the default case in a switch statement, when no other case is true. It being called a keyword seems somewhat misleading, though.
I'm stupid.
I have been programming for many years in many languages, used it thousand of times, and couldn't figure it out. :D
Thank you.
 
Top