Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/6e9094f9c909a75b9b0f26f343f377ab to your computer and use it in GitHub Desktop.
Save trycf/6e9094f9c909a75b9b0f26f343f377ab to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset valueToTest = "63.">
<cffunction name="getSomething" returntype="string">
<cfargument name="id" type="numeric">
<cfreturn "Hello world with the id " & ARGUMENTS.id>
</cffunction>
<cfoutput>
<cfif isValid("integer",valueToTest)>
<p>#valueToTest# is a valid integer</p>
<cfelse>
<p>#valueToTest# is not a valid integer</p>
</cfif>
#getSomething(valueToTest)#
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment