
Contributor
2024-05-27
02:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If -else statement
if(patient_age >= 0 AND patient_age <= 18, '0-18',
if(patient_age >= 19 AND patient_age <= 65, '19-65',
if(patient_age >= 66, '66 above','unknown')
)
)
missing paranthesis error
231 Views
1 Reply

Creator II
2024-05-27
03:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I don't find any error in your code, but you can try this
if(patient_age >= 0 AND patient_age <= 18, '0-18',
if(patient_age >= 19 AND patient_age <= 65, '19-65',
if(patient_age >= 66, '66 above','unknown')
)
)
207 Views
