Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Operators and constants

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

Type and existence operators

is a, is an

Results in true if the expression to its left is the same type as the type identifier on the right. The type identifiers are: number, integer, point, rect, date, and logical.

23 is a number      -- true
pi is an integer    -- false
"0,0,0" is a point  -- false
"0,0,0,0" is a rect -- true
"8/09/65" is a date -- true
false is a logical  -- true

there is a, there is an

Results in true if the expression to the right of the operator exists. The expression can take any of the following forms (with appropriate adjectives and/or names):

window    menu     menuItem   stack
file      disk     document   application
folder    picture  field      program [ID]*
button    part     scriptingLanguage
card      background
*Under system 7 only

there is no

Results in true if the expression to the right of the operator does not exist. The expression can identify the same elements as there is a.

there is no window "message watcher"
there is no menu "MayBe"
there is no menuItem "Back" of menu "Go"
there is no file "Simonides:References"
there is no stack "Home"
there is no card button 1
there is no disk "External Hard Disk"
there is no card 6
there is no bkgnd "fish bowl sizes"

there is not a

Same as the operator there is no.


Related Topics

« String operators | HyperTalk Reference | Constants »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Operators and constants

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

Type and existence operators

is a, is an

Results in true if the expression to its left is the same type as the type identifier on the right. The type identifiers are: number, integer, point, rect, date, and logical.

23 is a number      -- true
pi is an integer    -- false
"0,0,0" is a point  -- false
"0,0,0,0" is a rect -- true
"8/09/65" is a date -- true
false is a logical  -- true

there is a, there is an

Results in true if the expression to the right of the operator exists. The expression can take any of the following forms (with appropriate adjectives and/or names):

window    menu     menuItem   stack
file      disk     document   application
folder    picture  field      program [ID]*
button    part     scriptingLanguage
card      background
*Under system 7 only

there is no

Results in true if the expression to the right of the operator does not exist. The expression can identify the same elements as there is a.

there is no window "message watcher"
there is no menu "MayBe"
there is no menuItem "Back" of menu "Go"
there is no file "Simonides:References"
there is no stack "Home"
there is no card button 1
there is no disk "External Hard Disk"
there is no card 6
there is no bkgnd "fish bowl sizes"

there is not a

Same as the operator there is no.


Related Topics

« String operators | HyperTalk Reference | Constants »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View