How to write a recipe comparing two strings?

A post was split to a new topic: How to embed a PDF file to a recipe