F.1 Keywords

The following identifiers are keywords, and may not be used as variable or function names:

__FILE____LINE__break
casecatchclassdef
continuedoelse
elseifendend_try_catch
end_unwind_protectendclassdefendenumeration
endeventsendforendfunction
endifendmethodsendparfor
endpropertiesendswitchendwhile
enumerationeventsfor
functionglobalif
methodsotherwiseparfor
persistentpropertiesreturn
switchtryuntil
unwind_protectunwind_protect_cleanupwhile

The function iskeyword can be used to quickly check whether an identifier is reserved by Octave.

: iskeyword ()
: iskeyword (name)

Return true if name is an Octave keyword.

If name is omitted, return a list of keywords.

See also: isvarname, exist.