if

This block is part of the files group and was last modified in core v10.4.28.

if v10.4.28

If.. then.. else..

In pins 3
  • true required
    file
  • false required
    file
  • boolean required
    condition
Out pins 1
  • file
    file
branch

A typical wiring for if: find by extension feeds the then pin; rename feeds the else pin; the file out pin feeds get extension.

Studio canvas example for the if block: typical wiring for if.

Commonly used with

In production blueprints, this block is most often wired together with:

  • find by extension: feeds into this block. Filters a list of files by extension (e.g. mp4, jpg, png). Separate alternatives with | (e.g. png|jpg|gif). Returns matching files.
  • rename: feeds into this block. Renames the given files.
  • get extension: this block feeds into it. Grabs the file extension and mime-type.
  • move to public: this block feeds into it. Moves the given files to a new public destination.
  • resize: this block feeds into it. resize given images with new dimensions.

Version history

Introduced in v10.4.28.


Back to files Return to the main group to view all sub-groups Back to file conditions Return to the group to view all blocks within this group