Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
7th May 2020, 08:12 | #1 | Link |
Registered User
Join Date: Apr 2020
Posts: 17
|
How come avisynth scripts don't really use "if", "else", "while"?
Sorry for the noob question
I've downloaded quite a few avsi scripts and noticed that none of them use "if{...} else{...}", instead they all use "? :" I'm no programmer but I found it slightly odd because I thought "if", "else" were used all the time by programmers. The same goes for "while", it seems recursion is used more often instead, even though this post (https://forum.doom9.org/showthread.php?t=166697) says while loops should be faster or at least similar speed-wise. If I were to write a script, should I avoid using "if", "else", "while" too? |
7th May 2020, 08:50 | #2 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
http://avisynth.nl/index.php/GScript#Avisynth.2B
those use "if" and "else" https://github.com/AviSynth/avs-scripts if you aim for avs+ then no need to avoid "if", "else" and "while"
__________________
See My Avisynth Stuff |
Thread Tools | Search this Thread |
Display Modes | |
|
|