| 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:
image.jpg if ia<64 add 50% elif ia<128 add 25% elif ia<192 sub 25% else sub 50% fi cut 0,255

Home
News
Download
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