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.

Logical operators

not

Results in true if the expression on its right is false, and false if the expression on its right is true.

not (it contains "stack")
not (the number of this card is 1)

and

Results in true if both the expression to its left and the expression to its right are true.

(N = 0) and (the number of this card = 1)
(the name of this card is "index") and ¬
(the number of this card = 1) and ¬
(myVar is not false)

or

Results in true if either the expression to its left or the expression to its right is true.

(N = 1) or (the number of this card < 10)
basicTerm is "button" or ¬
basicTerm is "field" or ¬
basicTerm is "card" or ¬
basicTerm is "background" or ¬
basicTerm is "stack"

Related Topics

« Comparison operators | HyperTalk Reference | String operators »


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.

Logical operators

not

Results in true if the expression on its right is false, and false if the expression on its right is true.

not (it contains "stack")
not (the number of this card is 1)

and

Results in true if both the expression to its left and the expression to its right are true.

(N = 0) and (the number of this card = 1)
(the name of this card is "index") and ¬
(the number of this card = 1) and ¬
(myVar is not false)

or

Results in true if either the expression to its left or the expression to its right is true.

(N = 1) or (the number of this card < 10)
basicTerm is "button" or ¬
basicTerm is "field" or ¬
basicTerm is "card" or ¬
basicTerm is "background" or ¬
basicTerm is "stack"

Related Topics

« Comparison operators | HyperTalk Reference | String operators »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View