XModPro

Select Case question - evaluate zero

Mark Guercio Mark Guercio asked Jul 31, 2017
Active Jul 31 · Viewed 2235 times
<p>I have as stored procedure that returns an integer output parameter (count of existing records matching criteria) </p> <p>In a template I am evaluating the output parameter and if it is less than or equal to 3 an Add button is displayed. Else, nothing is displayed. </p> <p>How do I evaluate the zero (0) that is returned by the sproc when no records meet the criteria? </p> <p>I'm basically looking for an OR using Select Case. </p> <p>If &lt;my param&gt; = 0 display Add button </p> <p>OR </p> <p>If &lt;my param&gt; &lt;= '3' then display Add button </p> <p>Else </p> <p>Display nothing. </p> <p>I have to missing something fundamental, but am not seeing it. Anyone every build case statement to mimic an OR? </p> <p><br> </p> <p>Thanks.. </p> <p>Mark </p>

1 Answer

Loading answers...