lenb

Returns the number of bytes in an inventory attribute or string. 

Intended mainly for languages that do not use a Latin character set, such as Japanese and Chinese. If the string or inventory attribute is in a language that uses a Latin, single-byte character set, such as English, lenb returns the same value as len

Syntax

lenb(string)
Learn more about syntax for functions.

Parameter

string: can be any of the following:

Examples

  • lenb(ITEM_BRAND) returns:

    • 5 if ITEM_BRAND is 慰めa

    • 8 if ITEM_BRAND is 快適な靴

  • lenb("") returns 0.

Was this helpful?
How can we improve it?