I have not seen any examples, but wondered if anyone has tried nested "if"?
http://avisynth.nl/index.php/GScript
Cheers,
Andrew
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
I just tried it, it works nested.
Code:frate = LeftStr(string(FrameRate), 6) if (IsFrameBased == true){ if (frate == "29.970"){ subtitle("Nested If", align=6) } }
Code:frate = LeftStr(string(FrameRate), 6) if (IsFrameBased==true) and (frate = 29.970){ subtitle("Nested If", align=6) }
Andrew -
You don't need GScript for Avisynth+, it's for old Avisynth.
Code:frate = LeftStr(string(FrameRate), 6) if (IsFrameBased == true && frate == "29.970"){ subtitle("Nested If", align=6) }
What it performs if it's not valid?Last edited by VoodooFX; 30th Nov 2022 at 02:56.
-
Yeah nesting works fine.
Code:if (condition) { if (condition) { } else if (condition) { } else (condition) { } } else(condition) { if (condition) { } }
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview)
Similar Threads
-
"code":400,"error":true,"message" on http://getwvkeys.cc
By johnsonkiss in forum Video Streaming DownloadingReplies: 11Last Post: 19th Jan 2023, 08:36 -
AviSynth Script error: there is no function named "setmtmode"
By minimax in forum RestorationReplies: 27Last Post: 10th Sep 2021, 03:57 -
how to rallenty video and generate "audio-slowmo" (effect) using avisynth?
By marcorocchini in forum Newbie / General discussionsReplies: 58Last Post: 15th Apr 2019, 00:04 -
I have a problem removing transparent logo in avisynth using "delogo"
By TeNSoR in forum Newbie / General discussionsReplies: 11Last Post: 8th Jan 2019, 16:30 -
"Ambience" effect of SnapSeed (Android APP) on AviSynth (or MeGui)?
By Heiler in forum Video ConversionReplies: 0Last Post: 9th May 2018, 01:51