Editorial Workflows

Is A Minor

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Assumes that Set Variable 'age' has already been done in the workflow.

Returns 'true' if age < 18, 'false' if age >= 18, or 'unknown' if age not defined or has bad characters.

Shared by: @cclauss

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
Is A Minor ?
Source Code
#coding: utf-8
import workflow

# assumes that Set Variable 'age' has already been done
# returns 'true', 'false', or 'unknown'
    action_out = int(workflow.get_variable('age')) < 18
except:        # age not defined or has bad characters
    action_out = 'unknown'

Show HUD ?
HUD Text
  • 1 Second
  • 2 Seconds
  • 3 Seconds
  • "Success"
  • "Error"