Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to call a specific subroutine based on the name of the file. Somthing like this:
If (DocumentName()= 'Model', 'CALL BASE', 'CALL MI')
Looking for help on how to write the script
Thanks,
Zag
In the script it should be like this I guess:
IF DocumentName() = 'Model' THEN
CALL BASE
ELSE
CALL MI
END IF
But if the logic needs to work inside a LOAD statement it must be like this:
(I guess this is not what you are looking for)
LOAD
If( DocumentName() = 'Model', BASE() , MI() ) AS aCalc
....
;
The BASE and MI must then be Functions implemented in VBScript which can be called directly from a LOAD SCRIPT without a problem.
In the script it should be like this I guess:
IF DocumentName() = 'Model' THEN
CALL BASE
ELSE
CALL MI
END IF
But if the logic needs to work inside a LOAD statement it must be like this:
(I guess this is not what you are looking for)
LOAD
If( DocumentName() = 'Model', BASE() , MI() ) AS aCalc
....
;
The BASE and MI must then be Functions implemented in VBScript which can be called directly from a LOAD SCRIPT without a problem.
So simple. Thanks!
Steve