Could someone look at this screenshot and fix my code?

For some reason, the ListPicker doesnt work. Every item in the list has "0" in it, instead of the actual amount of times its in the list. Also, I want the sendEmail to be called when the instances of the item in the list are equal to/greater than three, but it doesnt work. Could someone help?

1 Like

A few comments:

  • What you have in Screen.Initialise appears a) irrelevant, and b) does nothing

  • Don't use list to name a list, give it a descriptive name that relates to what it contains, e.g. userList

  • Because you save a joined string to the user list, e.g. Jim 1 or Bob 7
    image

  • your findInstancesOf procedure will always return 0. Change the conditional test as follows:
    image

  • Your afterPicking event will probably always send an email. Is that what you want ?
    image

2 Likes