Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Счёт по префильтру #125

Discussion options

You must be logged in to vote

Изучение этого вопроса показало, что если у вас там 10 условий, то лучше использовать каскад из if.

Я попробовал создать через while и получилось вот так:

= : while(condition: $$iterator[cond] != true; action: $null; postaction: $end; iterator: "while"; limit: $limit)

zero: var(name: "exit"; value: "")
iterator: str`"row" + $#while`
null: ""
limit: 4
end: if(condition: $#while = math`$limit - 1`; condition: $$iterator[cond] = false; then: ""; else: $$row_exit)
		row_exit: $$iterator[exit]

row0: rowCreate(field: "cond" = false; field: "exit" = "null")
row1: rowCreate(field: "cond" = cond`#imya_polzovatelya = "Маша" && #kompaniya = 1`; field: "exit" = "exit_1")
row2: rowCreate(field: "con…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Makhmut2445
Comment options

@ttm-alexeypolunin
Comment options

Answer selected by Makhmut2445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Коды Особенности кодов
2 participants