Yes. In the function import definition, simply set a default value to the variable like this:
[code]
// main script
function DoSomething(int vara, int varb) {
// do something
}
[/code]
[code]
// script header
import function DoSomething(int vara, int varb=3); // varb will be optional
[/code]