Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

Nested ternary/conditional operator does not work?

$
0
0

I have a .jsx script that works well until it reaches this line:

 

return arguments.length === 1 ? r instanceof rgb ? rbg(r.r, r.g, r.b) : rgb_parse() : rgb(r, g, b);

 

The code is valid JavaScript but does not run in the ExtendScript Toolkit. Do I have to replace all of these blocks with if/else statements or is there another solution?


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>