Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
CCP IF / ELSE statements MX-990
This thread has 13 replies. Displaying all posts.
Post 1 made on Monday February 13, 2017 at 20:00
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
Has anybody ever gotten the IF / ELSE statements to work in a CCP macro? It seems like it always executes the statement regardless of the true or false state of the variable.

I’m trying to emulate the MX-700 Favorites where it goes back to the calling device from a single button. The calling device’s Favorite button macro sets its variable to True, and the Favorite device’s return button macro has one IF / THEN statement per possible device with a jump to that device if its variable is true. But it seems to just run down all the statements and does the last possible jump regardless of its variable state.

The alternative I have as a different save is the Favorites are in every device :)
DJ - MX-4000 LG 77G3
OP | Post 2 made on Monday February 13, 2017 at 20:50
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
If I nest them like below, it always does the first IF regardless of variable states.


DJ - MX-4000 LG 77G3
OP | Post 3 made on Monday February 13, 2017 at 22:52
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
I’m wondering, maybe it doesn’t behave properly in the software simulator but will in the actual remote – it’s getting here Wednesday. We'll see soon enough ...
DJ - MX-4000 LG 77G3
Post 4 made on Tuesday February 14, 2017 at 10:07
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
Haven't done a 990 but have been using IF/Else in CCP forever, no issues when done properly.
"Quality isn't expensive, it's Priceless!"
OP | Post 5 made on Tuesday February 14, 2017 at 11:34
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
Maybe it's not built to support the layering of IF ? ELSE commands.
DJ - MX-4000 LG 77G3
Post 6 made on Tuesday February 14, 2017 at 11:49
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On February 14, 2017 at 11:34, DJ Garcia said...
Maybe it's not built to support the layering of IF ? ELSE commands.

No, layering is fine if done properly. Without seeing exactly what you're doing, it's impossible to know where the issue might be. The example you posted is confusing, why clear the variable if it's true? Could make sense but because we can't see the rest we don't know.

PM me if you want me to take a look.
"Quality isn't expensive, it's Priceless!"
Post 7 made on Tuesday February 14, 2017 at 13:42
BizarroTerl
Active Member
Joined:
Posts:
October 2002
591
Would the setting of the variable to false even happen? Doesn't the jump take you out of the macro?
Post 8 made on Tuesday February 14, 2017 at 14:00
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On February 14, 2017 at 13:42, BizarroTerl said...
Would the setting of the variable to false even happen? Doesn't the jump take you out of the macro?

The rest of the macro should still execute. I've seen many like this where the page jump is first.
"Quality isn't expensive, it's Priceless!"
OP | Post 9 made on Tuesday February 14, 2017 at 15:18
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
I have several devices that share some common buttons. I put these let's call them Favorites into a separate device. Each main device has its own variable and a button to call the Favorites. The calling button sets the particular device's variable to true and all others to false, and jumps to the Favorites.



Last edited by DJ Garcia on February 14, 2017 15:50.
DJ - MX-4000 LG 77G3
OP | Post 10 made on Tuesday February 14, 2017 at 16:01
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
On February 13, 2017 at 20:50, DJ Garcia said...
If I nest them like below, it always does the first IF regardless of variable states.


In the Favorites device the Return button uses the above macro which should return it to the particular device that called it.
DJ - MX-4000 LG 77G3
Post 11 made on Wednesday February 15, 2017 at 12:45
goldenzrule
Loyal Member
Joined:
Posts:
July 2007
8,474
Post your file so we can take a look.
OP | Post 12 made on Wednesday February 15, 2017 at 16:27
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
I sent it in to the graphical portrait file section, not out yet.
DJ - MX-4000 LG 77G3
OP | Post 13 made on Saturday February 18, 2017 at 13:13
DJ Garcia
Founding Member
Joined:
Posts:
August 2001
403
I finally got my remote today and the nested if/elses work fine, looks like they just don't work in the simulator. Thanks for your comments and I'll stop bugging you guys like the idiotically excited newbie I am on this remote :).
DJ - MX-4000 LG 77G3
Post 14 made on Saturday February 18, 2017 at 16:37
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On February 18, 2017 at 13:13, DJ Garcia said...
I finally got my remote today and the nested if/elses work fine, looks like they just don't work in the simulator. Thanks for your comments and I'll stop bugging you guys like the idiotically excited newbie I am on this remote :).

No worries dude. Glad all is fine.
"Quality isn't expensive, it's Priceless!"


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse