I have not seen any examples, but wondered if anyone has tried nested "if"?
http://avisynth.nl/index.php/GScript
Cheers,
Andrew
+ Reply to Thread
Results 1 to 4 of 4
-
-
I just tried it, it works nested.
Performs same asCode:frate = LeftStr(string(FrameRate), 6) if (IsFrameBased == true){ if (frate == "29.970"){ subtitle("Nested If", align=6) } }
However, the above coding is not valid syntax.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 03:56.
-
Yeah nesting works fine.
VoodooFX, I think the GScript page is the only place you can find a description of the if-then-else constructs. There doesn't seem to be an Avisynth+ page for it, as such.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: 14Last Post: 25th Jul 2024, 22:45 -
AviSynth Script error: there is no function named "setmtmode"
By minimax in forum RestorationReplies: 27Last Post: 10th Sep 2021, 04:57 -
how to rallenty video and generate "audio-slowmo" (effect) using avisynth?
By marcorocchini in forum Newbie / General discussionsReplies: 58Last Post: 15th Apr 2019, 01:04 -
I have a problem removing transparent logo in avisynth using "delogo"
By TeNSoR in forum Newbie / General discussionsReplies: 11Last Post: 8th Jan 2019, 17:30 -
"Ambience" effect of SnapSeed (Android APP) on AviSynth (or MeGui)?
By Heiler in forum Video ConversionReplies: 0Last Post: 9th May 2018, 02:51



Quote