Snipplrhttp://snipplr.com/tags/statement
Recent snippets posted on Snipplr.comen-usSat, 10 Dec 2016 16:36:52 GMT(PHP) Wordpress Conditional statement for Singular Custom Post Type - i-am-andyhttp://snipplr.com/view/67604/wordpress-conditional-statement-for-singular-custom-post-type/
Suppose you wanted to check if a user was viewing a singular post with the post type of testimonial. You can use the next code sample to perform this check. ]]>Thu, 04 Oct 2012 20:43:14 GMThttp://snipplr.com/view/67604/wordpress-conditional-statement-for-singular-custom-post-type/(jQuery) Clear all text fields on focus based on original value with single function - Huskiehttp://snipplr.com/view/64478/clear-all-text-fields-on-focus-based-on-original-value-with-single-function/
Clear all text fields on focus based on original value with single function. The code checks for a 'title' attribute on each input with class 'text' and compares this to the current value of the field. ]]>Tue, 10 Apr 2012 19:29:59 GMThttp://snipplr.com/view/64478/clear-all-text-fields-on-focus-based-on-original-value-with-single-function/(PHP) PHP if outside the HTML - ryarwoodhttp://snipplr.com/view/64474/php-if-outside-the-html/
]]>Tue, 10 Apr 2012 14:02:49 GMThttp://snipplr.com/view/64474/php-if-outside-the-html/(PHP) Conditional Statement if Custom Field Exists Wordpress - i-am-andyhttp://snipplr.com/view/60283/conditional-statement-if-custom-field-exists-wordpress/
Only show content if Custom Field exists ]]>Fri, 28 Oct 2011 00:51:52 GMThttp://snipplr.com/view/60283/conditional-statement-if-custom-field-exists-wordpress/(JavaScript) If Else If Else - amandalainehttp://snipplr.com/view/56497/if-else-if-else/
]]>Wed, 13 Jul 2011 03:38:11 GMThttp://snipplr.com/view/56497/if-else-if-else/(Django) Django if statement &amp; loop - stewartduffyhttp://snipplr.com/view/55083/django-if-statement--loop/
]]>Thu, 09 Jun 2011 16:15:05 GMThttp://snipplr.com/view/55083/django-if-statement--loop/(Other) SQL - Find Duplicate Rows - silentprohttp://snipplr.com/view/53440/sql--find-duplicate-rows/
]]>Thu, 12 May 2011 13:33:26 GMThttp://snipplr.com/view/53440/sql--find-duplicate-rows/(ActionScript 3) AS3 Switch Statement Example - adrianparrhttp://snipplr.com/view/48889/as3-switch-statement-example/
]]>Sat, 12 Feb 2011 05:59:43 GMThttp://snipplr.com/view/48889/as3-switch-statement-example/(C++) Account / Password - k9flowhttp://snipplr.com/view/30864/account--password/
Well Here...
Newbs Only! ]]>Sun, 04 Apr 2010 01:50:23 GMThttp://snipplr.com/view/30864/account--password/(PHP) Short if-Statement - Michael01http://snipplr.com/view/24226/short-ifstatement/
]]>Thu, 03 Dec 2009 17:33:39 GMThttp://snipplr.com/view/24226/short-ifstatement/(JavaScript) Javascript IF Statements - shanegriffhttp://snipplr.com/view/6840/javascript-if-statements/
]]>Sun, 22 Jun 2008 18:16:09 GMThttp://snipplr.com/view/6840/javascript-if-statements/(SAS) Create a new data set for each BY-Group in a data set - webonomichttp://snipplr.com/view/6212/create-a-new-data-set-for-each-bygroup-in-a-data-set/
This sample uses macro logic to determine the number of unique values of a variable (the BY variable) and creates a new data set for each. The resulting data set names will be the BY variable value.
Limitations:
The sample code does not allow for BY values of longer than 32 positions, numeric BY values or BY values that contain characters that are not permitted in SAS data set names.
If your data contains any of the above, you must add program statements to convert your BY values into valid SAS data set names. ]]>Tue, 13 May 2008 17:23:08 GMThttp://snipplr.com/view/6212/create-a-new-data-set-for-each-bygroup-in-a-data-set/(JavaScript) Simple Switch Statement - 1manhttp://snipplr.com/view/4156/simple-switch-statement/
Very basic switch statement. ]]>Sun, 18 Nov 2007 10:58:53 GMThttp://snipplr.com/view/4156/simple-switch-statement/