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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th May 2020, 08:12   #1  |  Link
SlowDelivery
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?
SlowDelivery is offline   Reply With Quote
Old 7th May 2020, 08:50   #2  |  Link
real.finder
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
real.finder is offline   Reply With Quote
Old 7th May 2020, 09:05   #3  |  Link
SlowDelivery
Registered User
 
Join Date: Apr 2020
Posts: 17
Oh OK, so it is more of an compatibility issue and in terms of functionality, it's fine to use "if", "else" and "while".
SlowDelivery is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.