नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Syntax
List.First(list as list, optional defaultValue as any) as any
About
Returns the first item in the list list, or the optional default value, defaultValue, if the list is empty. If the list is empty and a default value is not specified, the function returns null.
Example 1
Find the first value in the list {1, 2, 3}.
Usage
List.First({1, 2, 3})
Output
1
Example 2
Find the first value in the list {}. If the list is empty, return -1.
Usage
List.First({}, -1)
Output
-1