How to count amount by status?

date as string = today

I want to check status date from webservice (dev completed)
If value date = true -----> loop day -1
value date = false ( date-1)and count +1

loop until count =3 and get date to output.

Hi @fairymemay
i am not cleared with your query

Can u elaborate it please?

@NIVED_NAMBIAR I have check status as below.

image

@fairymemay

You can use While loop and condition as count <> 3

Inside that you can check you condition

Hope this may help you

Thanks

@Srini84 If out_Result = false , I want to -1 day from now and count +1

I assign date = System.DateTime.Now.ToString(“yyyy/MM/dd")

I can’t -1 day from date and count+1 until count =3
Guide me about it please.

@fairymemay

Check as below

Hope this may help you

Thanks

@Srini84 please​ show​ assign calcation date​ in​ loop if.

@fairymemay

Check as below

Likewise in Else you can keep convert.ToDateTime(CalculateDate).AddDays(1).ToString

This will add a date

Mark as solution if this help you

Thanks