Problem with variable using IF action in BAS

Moved Other
  • I need an urgent help on how to fix variable issue inside an if action on BAS. USing a variable inside indexOf within an IF action does not work but using the exact text inside indexOF work perfectly

    Fail.PNG
    Using a variable [[TEST_EMAIL]] in the above screenshot makes the if action to fail

    work.PNG
    Using a string directly 'Test Email' within the if action works perfectly. Can anyone help me out pls, have being on this for days now. Thanks

  • @telim2 said in Problem with variable using IF action in BAS:

    I need an urgent help on how to fix variable issue inside an if action on BAS. USing a variable inside indexOf within an IF action does not work but using the exact text inside indexOF work perfectly

    Using a variable [[TEST_EMAIL]] in the above screenshot makes the if action to fail

    Using a string directly 'Test Email' within the if action works perfectly. Can anyone help me out pls, have being on this for days now. Thanks

    Do not enclose the variable in quotation marks

  • ModeratorM Moderator moved this topic from Off topic on

  • 0 Votes
    1 Posts
    290 Views
  • 0 Votes
    3 Posts
    433 Views
  • 0 Votes
    10 Posts
    1511 Views
  • 0 Votes
    12 Posts
    1453 Views
  • Stable BAS Version

    Moved Other
    -1 Votes
    4 Posts
    749 Views