Created
September 20, 2022 13:28
-
-
Save trycf/6e9094f9c909a75b9b0f26f343f377ab to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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