Skip to main content
Solved

Visible Expression

  • December 20, 2022
  • 3 replies
  • 486 views

Forum|alt.badge.img+1

Hello!

I have this visible expression here. What if I need to specify many values in this conditional statement, where or how should I place them? Thanks so much in advance!

 

Best answer by aaghaei

@paula012

In case you need a nested IF you can use something like this.

=CBool(IIf([ARTran.TranDesc]<>'TEST1', ‘False’, IIf([ARTran.TranDesc]<>'TEST2', ‘False’, IIf([ARTran.TranDesc]<>'TEST3', ‘False’, ‘True’))))

 

If you want to compare a few texts and ignore them you can use InStr something like:

=CBool(IIf(InStr('|TEST1|TEST2|TEST3|', [Address.DisplayName])<>0, ‘False’, ‘True’))

 

You might need to play a little bit with the formulas to get the desired result or switch the true to false. I am not an expert at RD but the above should give you a head start:

View original
Did this topic help you find an answer to your question?

3 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1206 replies
  • December 20, 2022

@paula012 What do you mean by many values? Do you mean nested if or do you mean instead of ‘DP ...’ you want to have multiple strings?


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1206 replies
  • Answer
  • December 20, 2022

@paula012

In case you need a nested IF you can use something like this.

=CBool(IIf([ARTran.TranDesc]<>'TEST1', ‘False’, IIf([ARTran.TranDesc]<>'TEST2', ‘False’, IIf([ARTran.TranDesc]<>'TEST3', ‘False’, ‘True’))))

 

If you want to compare a few texts and ignore them you can use InStr something like:

=CBool(IIf(InStr('|TEST1|TEST2|TEST3|', [Address.DisplayName])<>0, ‘False’, ‘True’))

 

You might need to play a little bit with the formulas to get the desired result or switch the true to false. I am not an expert at RD but the above should give you a head start:


Forum|alt.badge.img+1
  • Author
  • Semi-Pro II
  • 92 replies
  • December 20, 2022

Hi sir @aaghaei , thank you so much for the reply. I tried a simple formula that worked, I used “AND” for each item that I don’t wanna display. I will also try what you gave to compare. But can you let me know which I should use? Seeing that I just want to add many items as ‘values’ I don’t want to appear. Would this shorter formula be alright? Thanks again!

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings