title: How to use IIF command in code in rdl rdlc viewer?
body: <p>So I previously found this post 
  <a href="https://stackoverflow.com/questions/11648434/how-to-check-multiple-conditions-in-rdlc-expression">How to check multiple conditions in rdlc expression</a>
  which had this code inside:</p>
  
  <pre><code>Public Function GetGender(ByVal val as String) As String 
    Dim retVal as String = ""   
    If(val = "1") 
    retVal = "Male"
    Else If (val = "2")
    retVal = "???"
    Else If (val = "3")
    retVal = "???"
    Else
    retVal = "???"
    End If
   Return retVal
  End Function
  </code></pre>
  
  <p>This code works, but instead of (val="1") I need something like (val = "th*") that it searches and replaces anything that contains th, for example</p>