Top Rounds
| We are Hiring! |

_include ·

_include lets one Sahi script to include another.
This helps in organizing code.

Syntax:

_include(filePath)

The parameters are:

  • filePath: Path of file to include.
    The path can be absolute file path or a path relative to the file where the script is included.

Example:

_include("includesdir/common_functions.sah");

_include("C:/basepath/includesdir/common_functions.sah");

_include works by including the file during parsing of the script. You cannot pass a variable to it. The example below will not work:

// Will not work var $filePath = "includesdir/common_functions.sah"; _include($filePath);




---


Top Rounds