Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

Version 1 Next »

  1. Oleg, first question this channel. How can I iterate of java native string array in BML. Example:

$heading = "aa,bb,cc"$attributesArray = $heading.split(",")logInfo = $attributesArray

A: absolutely the same way as over any java.lang.Iterable or java.util.Iterator:
foreach(var $item, in: $attributesArray):
log = "item = " + $item;
the default accessor (e.g absence thereof as above) will simply assign the value obtained from the iterator. For specific iterators returning composite values (e.g. time sequence iterator returns an array of two values: interval begin and interval end times) you can use some accessor which will unpack the composite value (see https://docs.google.com/document/d/1_7f2XoKHHFQBqn36Ws9BPi00OQyZ5xSbe7-p0nY2DQo/edit#heading=h.vomjsxpcogfb)

  • No labels