| Table of Contents ▸ List of Commands ▸ Flow Control ▸ if | ◀ foreach | local ▶ |
if | Built-in command |
Arguments:
- condition
Description:
Start a if...[elif]...[else]...fi block and test if specified condition holds.condition is a mathematical expression, whose evaluation is interpreted as { 0:False | other:True }.
This command has a .
Example of use:
<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> if ia<64 add 50% elif ia<128 add 25% elif ia<192 sub 25% else sub 50% fi cut 0,255


Home
Download
News
Mastodon
Bluesky
X
Summary - 17 Years
Summary - 16 Years
Summary - 15 Years
Summary - 13 Years
Summary - 11 Years
Summary - 10 Years
Resources
Technical Reference
Scripting Tutorial
Video Tutorials
Wiki Pages
Image Gallery
Color Presets
Using libgmic
G'MIC Online
Community
Discussion Forum (Pixls.us)
GimpChat
IRC
Report Issue