Creator Help

distinct

This topic describes the syntax and usage of the list - distinct function in Zoho Creator .

Description

The List - distinct function returns a list with distinct elements.

Syntax

<list>.distinct()

where, <list> refers to a variable of type list.  

Note: This function is supported only in free-flow scripting mode of Script builder.

Return Value

Returns a list with distinct elements.

Example    

colors = {"red", "blue", "green", "yellow", "blue"};
colors.distinct();    //returns {"red", "blue", "green", "yellow"}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com