$code.existsTemplate

Returns whether the template with the given name exists.
Syntax
    $code.existsTemplate{template_name}
Documentation$code.existsTemplate:
Returns whether the template with the given name exists.
    Paramter:
      1: The name of the template in question.
    Returns:
      True (1) if the template exists, false (0) otherwise.
    Throws:
      None.
Examples
$if{$code.existsTemplate{/index}} { Exists. } { Doesn't exist. }
GroupCode
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters1
Maximum parameters 1