Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Behavior: Joins the values of all nodes in a given nodeset, or an arbitrarily long list of strings, with a given string. This can be used to get all the values of a node in a repeat group.
  • Return: Joined string
  • Arguments: 
    • If joining a nodeset: A string to join the values of the nodeset with, and a nodeset.
    Syntax: join
    • If joining a list of strings:
      • First argument: A string to join the values in the list with
      • Subsequent arguments: List of strings to join
  • Syntax
    • Nodeset: join(text, my_nodeset)
    Example
    • List of strings:
     join(
    • join(text, string_1, string_2, ..., string_n)
  • Examples
    • Nodeset: join(", ", /data/my_repeat/child_name)
    • List of strings: join(", ", /data/question1, /data/question2, /data/question3)

lower-case

  • Behavior Transforms all letters in a string to their lowercase equivalents. 
  • Return: Updated string
  • Arguments: The string you want to transform.
  • Syntax: lower-case(text)
  • Example: lower-case("i AM a Test") -> "i am a test"
  • Since: This function is available on CommCare 2.19 and later

...