Eyeon:Script/Reference/Libraries/string/len

From VFXPedia

Jump to: navigation, search

Contents

String : string.len

Arguments

string.len( string )

  • string (required, string)

A string value of unknown length.

Returns

The number of characters (length) contained in the provided string argument.

Remarks

This function returns a simple integer representing the number of characters in the provided string. If the argument provided is not a string, then the string.len() function will attempt to convert it to a number before calculating its length.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

-- returns a value of 14 string.len("This is a test") -- returns a value of 3 string.len("100") -- returns a value of 3 string.len(100)


Tips for len (edit)

EyeonTips:Script/Reference/Libraries/string/len