S subot.robot New Member May 16, 2006 #1 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
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
T tinman10011001 New Member May 16, 2006 #2 According to MPASM/MPLINK guide, it can be nested 16 levels. if's may be nested up to 16 deep. Click to expand... MPASM/MPLINK User's Guide
According to MPASM/MPLINK guide, it can be nested 16 levels. if's may be nested up to 16 deep. Click to expand... MPASM/MPLINK User's Guide
Nigel Goodwin Super Moderator Most Helpful Member May 16, 2006 #3 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!.
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!.