ium Posted November 27, 2011 Share Posted November 27, 2011 Is there any way to create conditionals which work like "if SMTH or SMTH_ELSE then DO_SOMETHING"? I understand that nested conditionals essentially work like AND, but I want OR. Link to comment Share on other sites More sharing options...
CFUG Posted November 27, 2011 Share Posted November 27, 2011 If SMTH DO_SOMETHING STOPIf SMTH_ELSE DO_SOMETHING_ELSE Link to comment Share on other sites More sharing options...
brucecampbell Posted November 27, 2011 Share Posted November 27, 2011 If SMTH DO_SOMETHING STOPIf SMTH_ELSE DO_SOMETHING Link to comment Share on other sites More sharing options...
ium Posted November 27, 2011 Author Share Posted November 27, 2011 Right, thanks, I guess I can do what I want...if SMTH DO_SOMETHINGif not SMTH if SMTH_ELSE DO_SOMETHNGA bit noisy, but works. Link to comment Share on other sites More sharing options...
CFUG Posted November 27, 2011 Share Posted November 27, 2011 Noisy, not following. What are we talking about? Variables, light state, what? There;s generally more than one way to program something within CHE. Link to comment Share on other sites More sharing options...
AK1 Posted November 28, 2011 Share Posted November 28, 2011 If SMTH DO_SOMETHING STOPIf SMTH_ELSE DO_SOMETHINGThis lack of basic BOOLEAN operators in Composer drives me nuts.I would really like to be able to code something like this:If Garage_Door_Left is_open OR Garage_Door_Right is_open DO_SOMETHINGThe approach above using STOP commands results in duplicate code which invariably leads to errors.This is just one example.... Link to comment Share on other sites More sharing options...
brucecampbell Posted November 28, 2011 Share Posted November 28, 2011 ^ + 1 Link to comment Share on other sites More sharing options...
CFUG Posted November 28, 2011 Share Posted November 28, 2011 Hey, post in Mr. Seth's wish-list thread then. Good engineers learn to find ways around poor engineering. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.