Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
the number of [card] {buttons|parts}
the number of bkgnd {buttons|parts}
the number of card fields
the number of [bkgnd] fields
the number of marked cards the number of cards [in bkgnd] ¬
[of this stack]
the number of bkgnds [of this stack]
the number of windows
the number of menus
the number of menuItems of menu
the number of chunks in expression
Values returned: A non-negative integer equal to one of the following:
on numberOfChunks
get bkgnd field "Demo Script"
answer "There are" && the number of lines in it && ¬
"lines and" && the number of words in it && "words and" && ¬
the number of characters in it && "characters in this handler."
end numberOfChunks
bkgnd id posInteger
bkgnd text -- name
bkgnd posInteger -- number
ordinal bkgnd
position bkgnd
bkgnd id 3894
bkgnd "Index"
bkgnd 1
prev bkgnd
previous bkgnd
next bkgnd
this bkgnd
first bkgnd
last bkgnd
middle bkgnd
any bkgnd
From within a background script, the term me
refers to that background.
When a background receives a the message [the] target,
that message is referring to the background.
See also: card
menu text
menu posInteger
ordinal menu
For example: menu "File"
menu 2
second menu
characters
chars
words
items
lines
true
sin(90)
"this is" && it
(3+2) = 5
the heapspace div 1024
length of 3 + 5
returns 6
and length of (3 + 5)
returns 1
. In short, always use parentheses to group things the way you want them to evaluate, and you won’t have to worry about the difference between factors and expressions.
Functions
Version 0.7b1 (March 24, 2022)