longfellow
IS-IT--Management
I have various students in a course . I have a statement in the report where i mention regarding male/female participants were there in the course.
-----------------------------------------------------------
I use the following formula
StringVar Sex;
if {STUD_SEX.SEX} = "M" then
if {STUD_SEX.SEX} = "F" then
Sex:= " male/female"
else
Sex:= " male"
else
Sex:= " female"
-----------------------------------------------------------
I will have 3 scenarios.First
male students:- if all paticipants attending the particular course are "males".
then the formula should return "male"
female students:- if all paticipants attending the particular course are "females".
then the formula should return "female"
male and female students:- if all paticipants attending the particular course include "males and females. "
then the formula should return "male/female"
-----------------------------------------------------------
I tried using the above formula
the first 2 scenarios are working fine but when it comes to the third ie when bot hmale and female participants are there instead of givinge "male/female" as the output i get output on 2 seperate lines
"male"
"female"
Whats wrong with the formula? how do i get the third scenario working? can't i have all the 3 in same formula?
Can anybody help me immdly
Thanking you in Advance
Longfellow
-----------------------------------------------------------
I use the following formula
StringVar Sex;
if {STUD_SEX.SEX} = "M" then
if {STUD_SEX.SEX} = "F" then
Sex:= " male/female"
else
Sex:= " male"
else
Sex:= " female"
-----------------------------------------------------------
I will have 3 scenarios.First
male students:- if all paticipants attending the particular course are "males".
then the formula should return "male"
female students:- if all paticipants attending the particular course are "females".
then the formula should return "female"
male and female students:- if all paticipants attending the particular course include "males and females. "
then the formula should return "male/female"
-----------------------------------------------------------
I tried using the above formula
the first 2 scenarios are working fine but when it comes to the third ie when bot hmale and female participants are there instead of givinge "male/female" as the output i get output on 2 seperate lines
"male"
"female"
Whats wrong with the formula? how do i get the third scenario working? can't i have all the 3 in same formula?
Can anybody help me immdly
Thanking you in Advance
Longfellow