An example of the execution of actions in a loop with a condition check
listReplace can be used not only in codes, but also in action codes to perform actions.
In this case, on each iteration, it will perform the specified action. Of course, on each iteration, you can perform a check and do nothing if the check is not passed.
For example, we will add +1 to the field if the list value is even (divisible by 2 without a remainder):
=: listReplace(list: $list; action: $if; value: "val")
        list: listNumberRange(min: 0; max: 10; step: 1)
    if: if(condition: math`$round - $division` = 0; then: $action)
            division: $#val / 2
            round: round(num: $division; type: "up"; step: 1; dectimal: 0)
        action: set(table: 'table'; field: 'field' + 1)