Creating List Tokens

  • 15 February 2022
  • 0 replies
  • 53 views

Userlevel 3
Badge +8

Topic

Lists are a powerful tool that Foxtrot offers. They can be created in a few easy steps (find out more in our Training Guide), and are often used to eliminate the use of too many If Statements. In this article we will review how to create a List Token or Expression.

 

Instructions

First we open the Expression Builder and look at the list view:
3638iBF9C7F9300244BA5.png
  1. Click on Lists to bring up this view.
  2. Seletc the List you want to search – You can have many different Lists within Foxtrot, choose the one you want to use for this case.
  3. In the ‘Look for:‘ field, this is where you will enter the value you want to search for, most likely a Token – This is the value that you are going to be searching for and replacing with another value.
  4. In the ‘in column:‘ field, this is the column that you want to search – Foxtrot will search for your value in the selected columns of your list.
  5. In the ‘and retrieve:‘ field, this is the column you want to return – Foxtrot will return the matching value in the row that it finds your searched value for.
  6. You must click the ‘Add‘ button to create a List Token – This button creates the List Expression for Foxtrot to evaluate every iteration of your script.
  7. After clicking Add, you will see a preview of the generated token.
  8. Once finished click OK and it will close the Expression Builder.
Once the Token is created it will evaluate every iteration of your script and provide an easier solution than many If Statements. You can also Import Lists to other scripts you write, in case they need to be used again.

 


0 replies

Be the first to reply!

Reply