Functions Index :: I :: ImportIf
Module:
Definition:
ImportIf(bool condition, string path_true, string "path_false")
Description:
Conditionaly imports into the script one of two files based on the value of condition (file path_true if condition == true, or file path_false if condition == false) [1].
Examples:
clp1 = AVISource(…)
clp2 = ImportIf(clp1.IsYUV, ""yuv_mask.avs"", ""rgb_mask.avs"")
[1]: The function may return any error returned by the standard Import Avisynth function if the name or the contents of the file that is chosen to be imported are not valid.