We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bae545 commit 0f2f161Copy full SHA for 0f2f161
microalg_export_blockly.l
@@ -127,7 +127,9 @@
127
kw_alors (cadr inputs)
128
splitted (split (cddr inputs) 'Sinon)
129
bloc_vrai (car splitted)
130
- bloc_faux (cadr splitted))
+ bloc_faux (cadr splitted)
131
+ # !next est le dernier de la liste inputs, si son car vaut Next.
132
+ !next (let !last (last inputs) (if (= (car !last) 'Next) !last)))
133
(pack "<block type=\"si\">"
134
(if (n0 (length bloc_faux)) "<mutation else=\"1\"></mutation>")
135
"<value name=\"COND\">"
@@ -140,6 +142,7 @@
140
142
"<statement name=\"SINON\">"
141
143
(eval (insertion_next bloc_faux))
144
"</statement>"))
145
+ (eval !next)
146
"</block>")
147
))
148
(de Texte (content)
0 commit comments