Re: FN-FORUM: C# Help
date posted 9th February 2008 09:29
if ((int.Parse(intCurrIndex.Text) + iif(1 <
int.Parse(intRecordCount.Text),1,0)))
{
intCurrIndex.Text = ((int.Parse(intCurrIndex.Text) +
int.Parse(intPageSize.Text))).ToString();
}
Using iif(test, if true then value, else value) is another way around,
changing the boolean to an int.