iskeyword

iskeyword(s) returns true if string s is a mathlayer language keyword and false otherwise.

mathlayer uses the following keywords:
  • break
  • case
  • catch
  • continue
  • else
  • elseif
  • end
  • for
  • function
  • if
  • otherwise
  • return
  • switch
  • try
  • while

Examples

> iskeyword('x')

[ans:false]

> iskeyword('if')

[ans:true]

See also

isvarname