==== How to use a variable in a drop down menu: ==== Overview of a short project: The logic Projection has drop down menus. If you want to queue the Projection logic and use a different angular sampling each iteration it is necessary to fit the exact values written in the drop down menu. {{ :eyes:flowcontrol:workflowscript_dropmenu.png?nolink&600 |}} **Properties Window** |< 100% 5% 35% >| ^ ^ ^ ^ |{{:eyes:flowcontrol:a.png?nolink&40 |}}|{{:eyes:flowcontrol:variableiterdrop.png?nolink&500|}} |At first two variables are needed. One variable is for the iteration number - type INTEGER. With this we can reach the index of the list, which holds our preferred options and is defined in the script. | |{{:eyes:flowcontrol:b.png?nolink&40 |}}|{{:eyes:flowcontrol:variablestringdrop.png?nolink&500|}} |The second variable is of type STRING to save the current list entry from the script and pass it on the the drop down menu. | |{{:eyes:flowcontrol:c.png?nolink&40 |}}|{{:eyes:flowcontrol:variablescriptdrop.png?nolink&500|}}|The script will hold a list of all the options, which are selected to run trough. It is important that all chosen list entries are in the original drop down menu. | |{{:eyes:flowcontrol:d.png?nolink&40 |}}|{{:eyes:flowcontrol:variablelogikdrop.png?nolink&500|}} | It is necessary to pass the variable currentSampling to the Projection logic. How to give the variable to a logic is described in [[eyes:flowcontrol:variable|]]. | |{{:eyes:flowcontrol:e.png?nolink&40 |}} | The [[eyes:flowcontrol:queue|]] and the [[eyes:flowcontrol:bypass|]] are as described in the links.|