whizard is hosted by Hepforge, IPPP Durham

Opened 13 years ago

Closed 13 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)

ticket419.sin (1.2 KB) - added by sschmidt 13 years ago.
sample input file

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by sschmidt

Attachment: ticket419.sin added

sample input file

comment:1 Changed 13 years ago by Juergen Reuter

Priority: P5P1

This should be clarified quickly, at latest before the meeting.

comment:2 Changed 13 years ago by kilian

Status: newassigned

Checking ...

comment:3 Changed 13 years ago by kilian

Resolution: fixed
Status: assignedclosed

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.