Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
the value of expression
Value returned: the value of the expression after HyperTalk evaluates it the value
can have as its argument. value
is a multitoken literal expression, the expression evaluates to itself: put value("HyperCard 2.2")
yields HyperCard 2.2
put the value of the clickChunk into theClickedText
the value of "3" & "+2" -- returns 3+2
the value of ("3" & "+2") -- returns 5
on talkAboutValue
select last line of me
answer "The last line of field “Demo Script” is:" & return &&¬
last line of me & return & return &¬
"The value of the last line of this field is:" & return &&¬
the value of last line of me
end talkAboutValue
2 * (3 + 6)/4
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)