These action codes operate like functions. They take one or more inputs and returns an output. Normally the latter is passed to an attribute but in a few cases, e.g. action() or runCommand(), the function may simply be called.
Such operators are:
- abs(sourceNum)
- action([scope,]codeStr)
- any(scope, condition)
- atan(radiansNum)
- attribute(attributeNameStr).keys
- attribute(attributeNameStr)[keyStr]
- attributeEncode(dataStr)
- avg_if(scope, condition, expressionStr)
- avg(scope, expressionStr)
- between(valueNum, minNum, maxNum)
- capitalize(dataStr)
- ceil(sourceNum)
- collect_if(scope, condition, expressionStr)
- collect(scope, expressionStr)
- Color.format()
- compositeFor(nameStr)
- compositeWithName(compositeNameStr)
- contains(item)
- cos(radiansNum)
- count_if(scope, condition)
- count(scope)
- covid([stateStr, countryStr|zipCodeStr], aDate, keywordStr)
- create([containerStr, ]nameStr)
- createAdornment([containerStr, ] nameStr)
- createAgent([containerStr, ]nameStr)
- createAttribute(nameStr[, dataType])
- createLink(sourceItem, destinationItem[, linkTypeStr])
- Date.format(formatStr)
- date(dateStr)
- date(yearNum, monthNum, dayNum[, hourNum, minNum])
- day(aDate, dayNum)
- day(aDate)
- days(firstDate, lastDate)
- degrees(radiansNum)
- delete(scope)
- descendedFrom(item)
- Dictionary.add(itemDict)
- Dictionary.contains(keyStr)
- Dictionary.extend(itemDict)
- Dictionary.icontains(keyStr)
- dictionary(dictionaryStr)
- Dictionary[keyStr]
- distance(startItem, endItem)
- distanceTo(startItem, endItem)
- do(macroStr[,argumentsList])
- document.keys()
- document()
- document[keyStr]
- drivingTimeTo(item)
- eachLink(loopVar[,scope]){actions}
- escapeHTML(dataStr)
- eval([item], expressionStr)
- every(scope, condition)
- exp(powerNum)
- expand(scope,methodStr)
- exportedString(item[, templateStr])
- fail()
- fetch(urlStr,headersDict,attrNameStr,cmdStr[,httpMethod,POSTbody])
- find(scope)
- first(item[, childrenNum])
- firstWord(dataStr)
- floor(sourceNum)
- format(dataStr, formatStr[, additionalArguments])
- hasLocalValue(attributeNameStr[, item])
- hour(aDate, hoursNum)
- hour(aDate)
- hours(startDate, endDate)
- idEncode(dataStr)
- if(condition){actions}[else{actions}]
- indented(depthNum[, item])
- inheritsFrom([item, ]prototypeStr)
- inside(item)
- Interval.format(formatStr)
- interval(dataStr)
- interval(startDate, endDate)
- isbn10(dataStr)
- isbn13(dataStr)
- JSON.each([pathStr]){actions}
- JSON.json[itemNum]
- JSON.json[keyStr]
- JSON.jsonValue()
- JSON.jsonValue(pathStr)
- jsonEncode(dataStr)
- last(item[, childrenNum])
- lastWord(dataStr)
- linkedFrom(scope[, linkTypeStr])
- linkedTo(scope[, linkTypeStr])
- linkFrom(scope[, linkTypeStr])
- linkFromOriginal(scope[, linkTypeStr])
- linkPath(pathNameStr[, startStr, endStr])
- links[(scope)].directionStr.[linkTypeRegex].attributeNameRefStr
- linkTo(scope[, linkTypeStr])
- linkToOriginal(scope[, linkTypeStr])
- list.any(loopVar, expressionStr)
- list.asString()
- list.at(itemNum)
- list.avg()
- list.collect_if(loopVar, condition, expressionStr)
- list.collect(loopVar, expressionStr)
- list.contains(matchStr)
- list.containsAnyOf(regexList)
- list.count_if(loopVar, condition)
- list.countOccurrencesOf(literalStr)
- list.each(loopVar){actions}
- list.every(loopVar, expressionStr)
- list.extend(aList)
- list.format(formatStr)
- list.icontains(matchStr)
- list.icontainsAnyOf(regexList)
- list.intersect(aSet)
- List.isort([attributeRefStr])
- list.lookup(keyStr)
- List.nsort([attributeRefStr])
- list.randomItem()
- list.remove(matchValue)
- list.replace(regexMatchStr, replacementStr)
- list.reverse()
- list.select()
- List.sort([attributeRefStr])
- list.sum_if(loopVar, condition[, expressionStr])
- list.sum()
- list.tr(inStr, outStr)
- List.unique()
- list(expressionList)
- list[itemNum]
- locale([localeCodeStr])
- log(sourceNum)
- lowercase(dataStr)
- max(numberList)
- min(numberList)
- minute(aDate, minutesNum)
- minute(aDate)
- minutes(startDate, endDate)
- mod(sourceNum, modulusNum)
- month(aDate, monthsNum)
- month(aDate)
- months(startDate, endDate)
- neighbors(scope, distanceNum[, linkTypeStr])
- neighbors2(scope, distanceNum[, linkTypeStr])
- neighbors2Within(scope, distanceNum[, linkTypeStr])
- neighborsWithin(scope, distanceNum[, linkTypeStr])
- notify(headlineStr[, detailsStr, deliveryDateTime ])
- Number.ceil()
- Number.floor()
- Number.format(decimalsNum[, widthNum, padStr]|formatStr)
- Number.precision(decimalsNum)
- Number.round()
- originalLinkedFrom(scope[, linkTypeStr])
- originalLinkedTo(scope[, linkTypeStr])
- play(soundNameStr)
- pow(sourceNum, powerNum)
- radians(degreesNum)
- rand([maxNumber])
- require(featureName)
- rgb(redNum, greenNum, blueNum)
- round(sourceNum)
- runCommand(commandStr[, inputsStr, dirStr])
- seconds(startDate, endDate)
- select()
- select(scope)
- show(msgString[, backgroundColor[,colorString]])
- similarTo(item[, notesNum])
- sin(sourceNum)
- speak(MessageStr[, voiceNameStr])
- sqrt(sourceNum)
- stamp([scope, ]stampName)
- String.beginsWith(matchStr)
- String.capitalize()
- String.captureJson()
- String.captureLine([targetAttributeStr])
- String.captureNumber([targetAttributeStr])
- String.captureRest([targetAttributeStr])
- String.captureTo(matchStr[, targetAttributeStr])
- String.captureToken([targetAttributeStr])
- String.captureWord([targetAttributeStr])
- String.contains(regexStr)
- String.containsAnyOf(regexList)
- String.countOccurrencesOf(literalStr)
- String.deleteCharacters(characterSet)
- String.eachLine(loopVar[:condition]){actions}
- String.endsWith(matchStr)
- String.expect(matchStr)
- String.expectNumber()
- String.expectWhitespace()
- String.expectWord()
- String.extract(regexStr[, caseInsensitiveBln])
- String.extractAll(regexStr[, caseInsensitiveBln])
- String.failed()
- String.find(matchStr)
- String.following(matchStr)
- String.icontains(regexStr)
- String.icontainsAnyOf(regexList)
- String.json()
- String.jsonEncode()
- String.lowercase()
- String.next()
- String.paragraph(paraNum)
- String.paragraphs(parasNum)
- String.replace(regexMatchStr, replacementStr)
- String.reverse()
- String.sentence([sentenceNum])
- String.show([backgroundColor[,colorString]])
- String.skip(charsNum)
- String.skipLine()
- String.skipTo(matchStr)
- String.skipToNumber()
- String.skipWhitespace()
- String.speak([voiceNameStr])
- String.split(regexStr)
- String.substr(startNum[, lengthNum])
- String.toNumber()
- String.tr(inStr[, outStr])
- String.trim([filterStr])
- String.try{actions}[.thenTry{actions}]
- String.uppercase()
- String.words(wordsNum)
- StyledString.bold()
- StyledString.fontSize(pointSizeNum)
- StyledString.italic()
- StyledString.plain()
- StyledString.strike()
- StyledString.textColor(aColor)
- substr(dataStr, startNum[, lengthNum])
- sum_if(scope, condition, expressionStr)
- sum(scope, expressionStr)
- tan(radiansNum)
- time(aDate, hoursNum, minutesNum[, secondsNum])
- time(aDate)
- type(attributeNameStr)
- unlinkFrom(scope[, linkTypeStr])
- unlinkFromOriginal(scope[, linkTypeStr])
- unlinkTo(scope[, linkTypeStr])
- unlinkToOriginal(scope[, linkTypeStr])
- update()
- update(scope)
- uppercase(dataStr)
- urlEncode(dataStr)
- values([scope, ]attributeNameStr)
- weeks(startDate, endDate)
- word(dataStr)
- wordsRelatedTo(dataStr[, wordsNum])
- XML.each(pathStr){action}
- XML.xml(pathStr)
- year(aDate, yearsNum)
- year(aDate)
- years(startDate, endDate)
See also—notes linking to here: