Skip to main content

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