# Switch Case

Grammar — If (value)
FlagsSubFunctions | Action | Hidden

Switch Cases are only found inside of a Switch statement. If the Value parameter matches the value returned by the parent Switch statement the action set will be run, otherwise nothing will happen.

# Arguments

  • sameasparent — Value

Returns — void

#IFSUBFUNC(notfirst,else )if (#AUTOVAR(val,parent) == #PARAM(value)) {
    #SUBFUNCS(actions)
}

Category: General / Conditional Statements

# Examples

— None found —