You are not logged in.

#1 2017-10-28 19:35:37

RogerP
Member
Registered: 2016-04-22
Posts: 20

Conditional [[Exec Command]]

Is there a way to run an external command only if an operation is true?

Something like:
   if  ([[LayerNumber]] > 5 )  [[Exec python ...]]

Offline

#2 2017-10-29 20:07:23

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Conditional [[Exec Command]]

I think it would be easier to just handle it on python side.
Another solution could be [[exec python file.{([[LayerNumber]]>5)}.py]]

Offline

#3 2017-11-10 02:58:47

RogerP
Member
Registered: 2016-04-22
Posts: 20

Re: Conditional [[Exec Command]]

Thanks for your answer Shahin,
I used your first suggestion and it is working fine
Sorry the delay but I was travelling

Offline

Board footer

Powered by FluxBB