You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

CAPITALIZE


Returns a string with the first character uppercased. 


Syntax

CAPITALIZE string
CAPITALIZE ( string, lowerTheRest )


Inputs

  • string - An attribute of base type string, an expression that results in a string or a constant string value.
  • lowerTheRest - An attribute of base type boolean, an expression that results in a boolean or a constant boolean value, indicating that the other characters need to be lowercased. This parameter is optional and if it is not supplied, the other characters are left untouched.


Return type

  • string


Example

ExpressionResultType
CAPITALIZE "hello""Hello"String
CAPITALIZE ( "WORLD" )"WORLD"String
CAPITALIZE ( "hello world " )"Hello world "String
CAPITALIZE " hELLo "" hELLo "String
CAPITALIZE TRIM " hELLo ""HELLo"String
CAPITALIZE TRIM LOWERCASE " hELLo ""Hello"String
CAPITALIZE ( "hello" , TRUE )"Hello"String
CAPITALIZE ( "WORLD" , TRUE )"World"String
CAPITALIZE ( "hello world " , TRUE )"Hello world "String
CAPITALIZE ( " hELLo " , TRUE )" hello "String
CAPITALIZE ( TRIM " hELLo " , TRUE )"Hello"String
CAPITALIZE( ? )?String



Back to Top

 

  • No labels