I typed it like this because iam using flask and the code was within a view function, hence i couldnt use print.
"one"
"two"
"one"
"two"
Numbers three and four never being returned.
Also i checked the values name, month, year that came as
name = request.args.get('name')
month = request.args.get('month')
year = request.args.get('year')
and all being correct.
The code must be in the short circuit logic?
if '=' not in name + month + year: printdata = "one" elif '=' not in month + year: printdata = "two" elif '=' not in name + year: printdata = "three" elif '=' not in year: printdata = "four" ...... ...... return printdataThe returning corresponding values returned are: name, month, and years are form drop down menu values which i seeect by hand frm another view fucntion and if i try to print them they print correctly.
"one"
"two"
"one"
"two"
Numbers three and four never being returned.
Also i checked the values name, month, year that came as
name = request.args.get('name')
month = request.args.get('month')
year = request.args.get('year')
and all being correct.
The code must be in the short circuit logic?