MAXScript Language Reference > Reserved Keywords, Symbols, Punctuation and Variables >

# Language Reserved Keywords

Keywords begin or separate portions of MAXScript commands.

For example, one form of the if expression is:

    if <expr> then <expr> [else<expr>]

In order for MAXScript to easily identify the various portions of the if expression, the words if , then and else are reserved keywords and can not be used as variable names or identifiers. So, for example, you cannot declare a variable or function called if .

The following table lists all MAXScript reserved keywords. Click a reserved keyword to go to a description of its usage. In some cases, a keyword may have more additional meanings, depending on its context. This information is also summarized in MAXScript Grammar.

### Reserved Keywords

about

and

animate

as

at

by

case

catch

collect

continue

coordsys

do

else

exit

fn

for

from

function

global

if

in

local

macroscript

mapped

max

not

of

off

on

or

parameters

persistent

plugin

rcmenu

return

rollout

set

struct

then

throw

to

tool

try

undo

utility

when

where

while

with

NoteThe from keyword is reserved, but not currently used.