suve

awful: function: file-included

declaration

bool :file-included ( string $NAME , … )

summary

Checks whether the given file was included during parsing. If multiple names are provided, all files must have been included for the function to yield TRUE. This function can be used to check if an !include statement was successful.

Note that checking for the main script file will yield FALSE.

example

# :file-included example
!include s"power.yuk"

!if :not :file-included s"power.yuk"
    :writeln s"Power function is not available! :("
    :exit
    !fi

wikistrona zmodyfikowana 2014/0601/2317