Code: Select all
textbutton l["place"] action [Show("location_photo", photo=l["photo"]), Show("icon_photo", icon=l["icon"]), Show("sub_location_list",actions=l["actions_list"])]
$ data = ["place":"Shinjuku", "photo":"shinjuku_photo", "icon":"shomonkai_icon", "actions_list":"list of actions"]
# The data for this last line might not be correct, I'm just pulling it from a larger nested structure and it's not important to my question I think.
Is there a way I can do this, maybe using if/then statements? I want to have conditions where no icon is shown.