[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Evaluate .. When with multiple conditions



this is what I have:

Evaluate $P3
        when = '1'
                Break
        when = '2'
                Do GetLocation
                Do PrintTable
                Break
        when = '3'
                Do GetEquipment
                Do PrintTable
                Break
        when = '4'
                Do GetCraft
                Do PrintTable
                Break
End-Evaluate

Don't forget the break statement

-----Message d'origine-----
De : Discussion of SQR, Brio Technology's database reporting language
[mailto:SQR-USERS@list.iex.net]De la part de Cliff Scott
Envoyé : 11 juin, 2001 10:45
À : SQR-USERS@list.iex.net
Objet : Evaluate .. When with multiple conditions


I can't get this to work.  I get a missing quote error message.  Is it
because you can't have multiple conditions in a when?  If I take out the
second condition, I don't get an error.

Evaluate Cov_End_DT
  When >= $CurrDt-90 and <= $CurrDt
  When other
     Show 'found other'
End-Evaluate