webCOMAND

#SIZE

Returns the number of bytes in a string, which may contain binary data.  For backward compatibility, #SIZE will also return the number of items in a collection, but #COUNT should be used instead.

Prototype

#SIZE($variable, $decimals = NULL)

Parameters

  • variable - A variable containing a string or binary data.
  • decimals - Optional parameter to specify the number of decimal places to include.  If specified, the number will be formatted with the specified number of decimals and followed by "bytes", "KB", "MB" or "GB".

Example


#NEW($Text)Hello World!#ENDNEW
There are #SIZE($Text) bytes in "$Text".


There are #SIZE($LargeFile,2) in file.

Related

#COUNT returns the number of items in a collection.