Does the select function select a single value or a list?
There is a fundamental difference between a single value and a list.
select returns a single value — for example, 3 or "screwdriver".
There is a case when a select returns a list — this happens if you take the value of a field that stores a list. For example, select with the parameter multiple.
A list looks like this: ["screwdriver","wrench","hammer"]. There can be a list with a single value, for example: ["screwdriver"], but this is not the same as a single value — the form is different.
Does the selectList function select a single value or a list?
selectList returns a list, even if the selection contains a single value — it will be a list with one value.
If you take a list of field values that are themselves lists, you will get a list of lists.
There is a function that will help you concatenate these lists one after another — listTrain.
If the field is for a single value and a list is passed to it?
It's better to avoid such situations. If this happens, the value will not be displayed or there will be an error.
If a list is selected, how do I take one value from it?
=: $list[1]
list: listCreate(item: "A"; item: "B"; item: "C")
// Result: B
How do I convert one value to a list?
=: listCreate(item: $value)
value: 10
=: json`[$value]`
value: "cucumber"
What basic operations can be performed with lists?
There is a whole section of functions related to list processing: