@stringstartswithnumericcharacter()

Checks if a string starts with a numeric character.

Syntax

@stringstartswithnumericcharacter (string)

Type

HyperMesh Template Function

Description

Checks if a string starts with a numeric character.

Inputs

string
The string to check.

Example

*components("")
*format()
   *if([@stringstartswithnumericcharacter (name)])
   *string("Component name starts with numeric character: ")
   *field(string,name,0)
   *end()
   *endif()
*output()

Returns 1 if the string starts with a numeric character, otherwise, 0.

Errors

None.