# Switch Case
Grammar — If (value)
Flags —SubFunctions
|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)
}
# Related
Category: General / Conditional Statements
- If Then Else — macro
- If Then Else-If — macro
- If Then — macro
- Switch — macro
- Switch Case — macro
# Examples
— None found —