Switch expression in compiled block
1470
2
0
-
- luoqiulin
- Member
![](https://static.sidefx.com/djangobb_forum/img/authority/vote8.png)
- 303 posts
- Joined: May 2007
- Offline
Hi
on switch node's help there is this script:
if (strmatch("*Error:*", run("opinfo " + opfullpath("../" + opinput(".", 1)))), 0, 1)
this is very useful when the first node have errors.
but how can the script work in Compiled Block?
Edited by luoqiulin - Dec. 24, 2021 08:27:28
-
- jsmack
- Member
![](https://static.sidefx.com/djangobb_forum/img/authority/vote10.png)
- 7981 posts
- Joined: Sept. 2011
- Offline
luoqiulin
but how can the script work in Compiled Block?
It cannot. The compiled block runs as if it were a single node cook. Intermediate data cannot be accessed.
-
- luoqiulin
- Member
![](https://static.sidefx.com/djangobb_forum/img/authority/vote8.png)
- 303 posts
- Joined: May 2007
- Offline
jsmack
luoqiulin
but how can the script work in Compiled Block?
It cannot. The compiled block runs as if it were a single node cook. Intermediate data cannot be accessed.
ok it's a bad news!
![](/static/djangobb_forum/img/smilies/sad.png)
thank you very much,