Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

nesting of if else statments

Status
Not open for further replies.

subot.robot

New Member
Hi ,
Is it possible to nest if else statements as below in MPasm (MPLab)?

if condition1?
action1
else if condition2?
action2
else if condition3?
action3
else
action4
endif
endif
endif
 
Just be aware though, this isn't programming the PIC, it's only assembler directives! - I've seen a LOT of users expecting assembler directives to produce code, and they don't!.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top