How can I check if a trade's comment contains an "X" string? Can I do it with the regular condition block?
-
How can I check if a trade's comment contains an "X" string? Can I do it with the regular condition block?
-
Yes but you need a for each trade block, and get the value in a loop:

-
This I know, it still doesn't answer my question... Anyone else has an idea???
-
I think it does, but if not elaborate on what you need and I will see if I can help
-
@eranger This is the second thread you created for the exact same question. Please don't duplicate threads.
-
Read carefully what I wrote it is very clear. It's just a challenging question that I think many people can encounter this problem:
In the condition block you have only: ==, <, > but you don't have contain function for comparing text values in contrary to numeric values -
I did! "How can I check if a trade's comment contains an "X" string? Can I do it with the regular condition block?" what I showed is how to get a comment from a trade, so elaborate...and you can be helped. == compares text values
-
Okay but if I have a long text comment and I need to check only part of the comment:
"trade-10-33", "trade-20-40"
I need it to check if the comment contains only "-10-" or only "'-20-" and not the whole comment. -
This is the general principle, you can mix this in standard blocks: https://fxdreema.com/shared/HW3zmg2wb