Opened 14 years ago
Closed 14 years ago
#419 closed defect (fixed)
else statement not evaluated in analysis
Reported by: | sschmidt | Owned by: | kilian |
---|---|---|---|
Priority: | P1 | Milestone: | v2.0.6 |
Component: | core | Version: | 2.0.5 |
Severity: | minor | Keywords: | |
Cc: |
Description
When using an analysis expression like
analysis = if 1>2 then record Pt_distribution_1 (1) else record Pt_distribution_2 (1) endif
(cf. 4.5.1 and 5.9.2 in the manual) with a false logical statement, both histograms remain empty. With a true logical statement the first histogram is filled as expected.
Attachments (1)
Change History (4)
Changed 14 years ago by
Attachment: | ticket419.sin added |
---|
comment:1 Changed 14 years ago by
Priority: | P5 → P1 |
---|
This should be clarified quickly, at latest before the meeting.
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Done in r3264. In conditional expressions, 'elsif' and 'else' branches were dropped unless the expression type was numeric.
Note: See
TracTickets for help on using
tickets.
sample input file