digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Conditional Variables? (http://www.digitalfaq.com/archives/avisynth/8824-avisynth-conditional-variables.html)

Prodater64 03-27-2004 10:15 PM

Avisynth: Conditional Variables?
 
Hi: How can I set conditional variables?

Something like:

c = (a == x) ? b = 1 : b = 2

I'm trying in this way but I got a message "insufficient memory..."

Peter1234 03-27-2004 10:56 PM

Prodater64,
This use to be part of Kag's script:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

I do not know if that helps.

Peter1234 03-27-2004 11:01 PM

Prodater64,
I have never done this, but I think you need your b= at start of line.

Prodater64 03-27-2004 11:25 PM

Quote:

Originally Posted by Peter1234
Prodater64,
This use to be part of Kag's script:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

I do not know if that helps.

Thank you, this one sentence give me the key!!!
:D :D :D :D :D :D


All times are GMT -5. The time now is 11:24 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.