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 Commands

To test a Basic subroutine using the Terminal, use this syntax: do sub^routine(args).

To test a Basic function using the Terminal, use this syntax: write $$func^routine(args).

ObjectScript commands Do and Write ! are similar to Basic commands Call and Println. You already saw the Do command used to run the BASRightTriangle routine. The example below shows the Write command calling the IsNegative() function within the BASRightTriangle routine.

 write !, $$IsNegative^BASRightTriangle(4)
 write !, $$IsNegative^BASRightTriangle(-4)
FeedbackOpens in a new tab