Editorial Workflows

Evaluate Math Inline

public workflow

Install 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: Evaluates the current selection as a mathematical expression and inserts the result inline with the expression.

Example: Enter "5*(2+3)" (without the quotes), select the expression and run the workflow. It'll append " = 25" directly after the expression and before any text that follows the expression.

This is a variation of the example Evaluate Math workflow provided by Ole Zorn. Thanks Ole. You rock!

Shared by: Donovan Dillon, @heretiq

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Math ?
Expression
Input
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
ERROR
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
Error
…End If
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
0
Replace Selected Text ?
Replacement Text
= Input