cityengine
  • 首页
  • 博客
  • 文档
  • 学院
  • 规则

知识库

  1. Home
  2. Knowledge Base
  3. CGA【3】 Built-in functions
  4. String functions
  5. len
  6. len

len

  • Created 2021年6月25日
  • Author CreateUrban
  • Category len

Syntax

  • float len(inputString)

Parameters

  1. inputString—string

Returns

Length of inputString.

Description

The len function returns the number of characters of the inputString.

Related

  • count function
  • find function
  • substring function

Examples

len("cityengine")
# result = 10
len("abc")
# result = 3

Was this article helpful?

Yes No
Powered by CityVistion | 备案号 : 沪ICP备17039843号-4