Wikis - Page

SBM: Using include() in Appscript and Modscript

1 Likes
SBM Appscript and Modscript have a slightly different syntax for including one script file inside another.  Reflect on the differences in syntax between Appscript and the more powerful Modscript.  
The syntax for an Appscript include is different.  Compare the Appscript version vs the Modscript.  Modscript include is a "free function".  Notice the quotes around the script name, the semi-colon at the end and case of the Modscript call.
' Appscript
$INCLUDE( mySBMAppscript )

//Modscript
include("scriptIncludeParentSubmit");
Using the include function allows the SBM developer to modularize SBM code.  SBM will look in the same application, process app and other process apps for the script file to include.  See the SBM documentation for more on including other scripts .

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended