Simplified IF..THEN

Post your requests and ideas on the future development of mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Timmers
Posts: 3
Joined: 27 Jan 2015 11:12

Simplified IF..THEN

#1 Post by Timmers » 07 Apr 2015 16:11

Could the IF statement be condensed into one line of code instead of three.

Example

IF myvar = 10 THEN
GOTO PROCESS10
END IF


Could be shortened to

IF myvar = 10 THEN GOTO PROCESS10

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: Simplified IF..THEN

#2 Post by Aleksandar.Mitrovic » 08 Apr 2015 16:43

Hi,

Yes you should be able to do that for IF.

Best regards,
Aleksandar

lejeff
Posts: 218
Joined: 04 Dec 2011 16:10
Location: France

Re: Simplified IF..THEN

#3 Post by lejeff » 09 Apr 2015 08:11

don't forget end if

IF myvar = 10 THEN GOTO PROCESS10 END IF

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 Wish List”