A possibility like #ifdef in HAL files?

  • HansU
  • HansU's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
31 Jan 2021 10:12 #197213 by HansU
Hi,
is there a possibility to define a value (like #define in C) and then use something like #ifdef in the HAL files?
For example you want to use nearly a same config on two machines/computers and they decide only in a very few points.

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 21:17 #197246 by cmorley
Replied by cmorley on topic A possibility like #ifdef in HAL files?
HALcmd has no logic commands built in.
You could use HAL to load say a python program though and use the python program to do the logic.
Might be akward, might be ok - depends on what you really want to do.

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 22:22 #197250 by phillc54
Replied by phillc54 on topic A possibility like #ifdef in HAL files?

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 22:44 #197254 by cmorley
Replied by cmorley on topic A possibility like #ifdef in HAL files?
Oh yes - I forgot about that.

Please Log in or Create an account to join the conversation.

  • HansU
  • HansU's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
01 Feb 2021 18:50 #197325 by HansU
Replied by HansU on topic A possibility like #ifdef in HAL files?
Not really what I was looking for, but thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum