Switch expression in compiled block
1414
2
0
-
- luoqiulin
- Member
![](https://static.sidefx.com/djangobb_forum/img/authority/vote8.png)
- 303 posts
- Joined: May 2007
- Online
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)
- 7945 posts
- Joined: Sept. 2011
- Online
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
- Online
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,