Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

ObjectScript Functions

ObjectScript provides many functions, all documented in the Caché ObjectScript Reference. Functions, like in other languages, accept parameters and return a result. Like commands, functions are not case-sensitive, and can be abbreviated; their names begin with $. The RightTriangle routine used $Zsqr to compute the square root.

SAMPLES>write $zsqr(63)
7.93725393319377177
SAMPLES>write $zlog(100)
2
SAMPLES>
FeedbackOpens in a new tab