Using greater than equal to within IF in for each

Hi all,

I am trying to perform the below operation using IF within a for each

((row(6).ToString)>“3”)&&(row(6).ToString)<=“5”))

i get end of expression error .what am i doing wrong ? Please help with .

Thanks,
S

@Sharmi_thangam_malat Try this( ((row(6).ToString)>“3”)&&(row(6).ToString)<=“5”)))

Hello,

That’s an C# expression so you can use AND or AlsoAND insted of &&

To convert your c# code to vb.net use below link.

http://converter.telerik.com

Thanks,
Meg

2 Likes

Thank you ! your suggestion worked !

Thank you for your response but && didn’t work . AND worked !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.