Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfscript>
- foo = [1, 2, 3];
- bar = javacast( "null", "");
- baz = ( foo.len() ?: "can't do it captain");
- frobozz = ( bar.len() ?: "can't do it captain");
- </cfscript>
- <cfoutput>
- <ul>
- <li>baz: #baz#</li>
- <li>frobozz: #frobozz#</li>
- </ul>
- </cfoutput>
Add Comment
Please, Sign In to add comment