Title: [Plugin: Formidable] Creating custom shortcodes
Last modified: August 20, 2016

---

# [Plugin: Formidable] Creating custom shortcodes

 *  Resolved [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-formidable-creating-custom-shortcodes/)
 * Is is possible to create a a shortcode to check a value?
 * I’ve seen this <td class=”[if id equals=”20″]red[/if id]”>[id]</td>
 * But would it be possible to check if the value is greater or less than?
 * ie <td class=”[if id greater>”20″]red[/if id]”>[id]</td>
    or <td class=”[if id
   less<“20″]blue[/if id]”>[id]</td>
 * I can create basic short codes for adding atributes to, say, image src, width,
   height etc but I’m lost with how to implement this.
 * Any help appreciated,
    Sam

Viewing 1 replies (of 1 total)

 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-formidable-creating-custom-shortcodes/#post-2309390)
 * Did it with JavaScript in the end:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Formidable] Creating custom shortcodes’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-formidable-creating-custom-shortcodes/#post-2309390)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
