{"id":6979,"date":"2017-07-27T15:45:48","date_gmt":"2017-07-27T13:45:48","guid":{"rendered":"https:\/\/www.auditsi.eu\/?p=6979"},"modified":"2017-08-06T19:23:22","modified_gmt":"2017-08-06T17:23:22","slug":"les-operateurs-de-comparaison","status":"publish","type":"post","link":"https:\/\/www.auditsi.eu\/?p=6979","title":{"rendered":"Les op\u00e9rateurs de comparaison"},"content":{"rendered":"<p style=\"text-align: justify;\">Les op\u00e9rateurs de comparaison sont des symboles qui lient deux expressions pour valider une comparaison.<\/p>\n<table class=\"ccm\" width=\"150\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th align=\"middle\"><span style=\"font-family: georgia,palatino,serif;\">Op\u00e9rateur<\/span><\/th>\n<th align=\"middle\"><span style=\"font-family: georgia,palatino,serif;\">D\u00e9nomination<\/span><\/th>\n<th align=\"middle\"><span style=\"font-family: georgia,palatino,serif;\">Effet<\/span><\/th>\n<th align=\"middle\"><span style=\"font-family: georgia,palatino,serif;\">Exemple<\/span><\/th>\n<th align=\"middle\"><span style=\"font-family: georgia,palatino,serif;\">R\u00e9sultat<\/span><\/th>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">=<\/span><br \/>\n<b> <\/b><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur d&#8217;\u00e9galit\u00e9<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Compare deux valeurs et v\u00e9rifie leur \u00e9galit\u00e9<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x=3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est \u00e9gal \u00e0 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">==<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur d&#8217;\u00e9galit\u00e9 en Langage C<\/span><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">&lt;<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur d&#8217;inf\u00e9riorit\u00e9 stricte<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">V\u00e9rifie qu&#8217;une variable est strictement inf\u00e9rieure \u00e0 une valeur<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x&lt;3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est inf\u00e9rieur \u00e0 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">&lt;=<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur d&#8217;inf\u00e9riorit\u00e9<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">V\u00e9rifie qu&#8217;une variable est inf\u00e9rieure ou \u00e9gale \u00e0 une valeur<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x&lt;=3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est inf\u00e9rieur \u00e0 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">&gt;<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur de sup\u00e9riorit\u00e9 stricte<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">V\u00e9rifie qu&#8217;une variable est strictement sup\u00e9rieure \u00e0 une valeur<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x&gt;3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est sup\u00e9rieur \u00e0 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">&gt;=<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur de sup\u00e9riorit\u00e9<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">V\u00e9rifie qu&#8217;une variable est sup\u00e9rieure ou \u00e9gale \u00e0 une valeur<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x&gt;=3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est sup\u00e9rieur ou \u00e9gal \u00e0 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">&lt;&gt;<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur de diff\u00e9rence<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">V\u00e9rifie qu&#8217;une variable est diff\u00e9rente d&#8217;une valeur<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">x&lt;&gt;3<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">Retourne <i>true<\/i> si X est diff\u00e9rent de 3, sinon <i>false<\/i><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: georgia,palatino,serif;\">!=<\/span><\/td>\n<td><span style=\"font-family: georgia,palatino,serif;\">op\u00e9rateur de diff\u00e9rence en Langage C<\/span><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">Les op\u00e9rateurs de comparaison sont notamment utilis\u00e9s pour r\u00e9diger les <a href=\"https:\/\/www.auditsi.eu\/?p=1797\">tests conditionnels<\/a> en programmation (langages Basic, VBA&#8230;\u00a0et dans les requ\u00eates SQL).<\/p>\n<p style=\"text-align: justify;\">Approfondir le sujet : <a href=\"https:\/\/www.auditsi.eu\/?p=6976\">les op\u00e9rateurs<\/a> \/\u00a0<a href=\"https:\/\/www.auditsi.eu\/?cat=1207\">s&#8217;initier au langage Basic<\/a> \/ <a href=\"https:\/\/www.auditsi.eu\/?cat=1569\">programmer en VBA<\/a> \/ <a href=\"https:\/\/www.auditsi.eu\/?cat=1820\">ma\u00eetriser le langage de requ\u00eate SQL<\/a><\/p>\n<div style=\"padding-bottom:20px; padding-top:10px;\" class=\"hupso-share-buttons\"><!-- Hupso Share Buttons - https:\/\/www.hupso.com\/share\/ --><a class=\"hupso_counters\" href=\"https:\/\/www.hupso.com\/share\/\"><img decoding=\"async\" src=\"https:\/\/static.hupso.com\/share\/buttons\/lang\/fr\/share-small.png\" style=\"border:0px; padding-top:2px; float:left;\" alt=\"Share Button\"\/><\/a><script type=\"text\/javascript\">var hupso_services_c=new Array(\"twitter\",\"facebook_like\",\"facebook_send\",\"email\",\"print\",\"linkedin\");var hupso_counters_lang = \"fr_FR\";var hupso_image_folder_url = \"\";var hupso_twitter_via=\"BenoitRiviere14\";var hupso_url_c=\"\";var hupso_title_c=\"Les%20op%C3%A9rateurs%20de%20comparaison\";<\/script><script type=\"text\/javascript\" src=\"https:\/\/static.hupso.com\/share\/js\/counters.js\"><\/script><!-- Hupso Share Buttons --><\/div>","protected":false},"excerpt":{"rendered":"<p>Les op\u00e9rateurs de comparaison sont des symboles qui lient deux expressions pour valider une comparaison. Op\u00e9rateur D\u00e9nomination Effet Exemple R\u00e9sultat = op\u00e9rateur d&#8217;\u00e9galit\u00e9 Compare deux valeurs et v\u00e9rifie leur \u00e9galit\u00e9 x=3 Retourne true si X est \u00e9gal \u00e0 3, sinon false == op\u00e9rateur d&#8217;\u00e9galit\u00e9 en Langage C &lt; op\u00e9rateur d&#8217;inf\u00e9riorit\u00e9 stricte V\u00e9rifie qu&#8217;une variable est &#8230;<\/p>\n<p><a href=\"https:\/\/www.auditsi.eu\/?p=6979\" class=\"more-link\">Continue reading &lsquo;Les op\u00e9rateurs de comparaison&rsquo; &raquo;<\/a><\/p>\n<div style=\"padding-bottom:20px; padding-top:10px;\" class=\"hupso-share-buttons\"><!-- Hupso Share Buttons - https:\/\/www.hupso.com\/share\/ --><a class=\"hupso_counters\" href=\"https:\/\/www.hupso.com\/share\/\"><img src=\"https:\/\/static.hupso.com\/share\/buttons\/lang\/fr\/share-small.png\" style=\"border:0px; padding-top:2px; float:left;\" alt=\"Share Button\"\/><\/a><script type=\"text\/javascript\">var hupso_services_c=new Array(\"twitter\",\"facebook_like\",\"facebook_send\",\"email\",\"print\",\"linkedin\");var hupso_counters_lang = \"fr_FR\";var hupso_image_folder_url = \"\";var hupso_twitter_via=\"BenoitRiviere14\";var hupso_url_c=\"\";var hupso_title_c=\"Les%20op%C3%A9rateurs%20de%20comparaison\";<\/script><script type=\"text\/javascript\" src=\"https:\/\/static.hupso.com\/share\/js\/counters.js\"><\/script><!-- Hupso Share Buttons --><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[442,1839,218,471,282,215],"tags":[848,1142,847],"class_list":["post-6979","post","type-post","status-publish","format-standard","hentry","category-basic","category-c","category-delphi","category-langages","category-sql","category-vba","tag-false","tag-operateurs-de-comparaison","tag-true"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/posts\/6979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6979"}],"version-history":[{"count":7,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/posts\/6979\/revisions"}],"predecessor-version":[{"id":7039,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=\/wp\/v2\/posts\/6979\/revisions\/7039"}],"wp:attachment":[{"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auditsi.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}