How do you use a block at the start of a screen?


I have to use that code at the start of the screen, but i don't know how to do it.

Can anyone help me?

Use the Screen.Initialise event block.

If you are comparing number blocks, ensure any variables, labels or textboxes are at least set to 0 or a number. Empty values may generate an error.

Where is that block?

image

I cant see these

Change your Blocks Toolkit to Default

you going wrong..
you are using just if else what if globle prog = 3
then it willy apply on all blocks that smallar
globle prog > 0 ✓
globel prog > 1 ✓
globel prog > 2 ✓

use like that
if () {
} else if (){
} else if ()...
....
...

Understood thank you :smiling_face:

i want all be true at these situations thats why I did like that

It would actually make more sense to reuse the image and button/label/textbox, and just set the image and text from lists.

Actually I couldn't understand what you have said

then you can use for each item/num for that

Understood, thank you.

yes offcourse and also dynamic components is another better option

Something like this:

yes but we need an loop for this..? what if we directly use for each num loop then we can remove globle part

From what I can see in the OP's original blocks, no loop is required, just about setting the items from the list based upon a value supplied.

{EDIT} I may have misread, and the OP may want to display all images and text where the value is less than....

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.