locked
If Syntax RRS feed

  • Question

  • User-797751191 posted

    Hi

      Is the below correct Syntax

    If {@Amount} < 0 Then "Cr";
    If {@Amount} > 0 Then "Dr";
    If {@Amount} = 0 Then "";

    Thanks

    Monday, December 2, 2019 5:27 AM

All replies

  • User-1780421697 posted

    @{var amount=50;}

    @if (amount<0)
        {
         <b>Cr</b>
        }

    else if(amount<0)
    {
         <b>Dr</b>
    }
    else if(amount==0)
    {<b> </b>
    }

    Monday, December 2, 2019 6:43 AM