NaviServer Programmable Web Server

ns_adp_argc(n)

NaviServer Built-in Commands – 5.1.0


[ Main Table Of Contents | Table Of Contents | Keyword Index ]

Name

ns_adp_argc - Return the number of arguments to the current ADP

Table Of Contents

Synopsis

Description

This command returns the number of arguments passed to the current ADP invocation. The arguments are typically provided via ns_adp_include. The count reflects only the argument values and does not include the name of the ADP itself.

COMMANDS

ns_adp_argc

Returns the number of arguments passed to the current ADP.

EXAMPLES

 # In a.adp:
 <% ns_adp_include b.adp example a b c %>
 # In b.adp:
 <%
   ns_adp_argc      ;# => 4
 %>

See Also

ns_adp_argv, ns_adp_bind_args, ns_adp_include, ns_adp_parse

Keywords

ADP, server built-in