Else Page

else



Return to Reserved Words - Keywords, Programming Glossary

----

* What programming languages support the Reserved Word else. Answer in MediaWiki syntax with the URL of the official documentation for each language reference.

Here are some programming languages that support the else reserved word along with links to their official documentation:

Programming Languages Supporting 'else' Keyword


* C: [https://devdocs.io/c/language/if C Documentation]
* C++: [https://devdocs.io/cpp/language/if C++ Documentation]
* Java: [https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/if.html Java Documentation]
* JavaScript: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else JavaScript Documentation]
* Python: [https://docs.python.org/3/tutorial/controlflow.html#if-statements Python Documentation]
* Ruby: [https://ruby-doc.org/core-3.0.3/doc/syntax/control_expressions_rdoc.html#label-else+Statement Ruby Documentation]
* Go: [https://golang.org/ref/spec#If_statements Go Documentation]
* TypeScript: [https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#using-if-statements TypeScript Documentation]
* Swift: [https://docs.swift.org/swift-book/ReferenceManual/Statements.html#ID458 Swift Documentation]
* PHP: [https://www.php.net/manual/en/control-structures.if.php PHP Documentation]
* Perl: [https://perldoc.perl.org/perlsyn.html#Conditional-Statements Perl Documentation]

These languages use the else keyword in conditional statements to specify the block of code to be executed if the condition is false. You can find more details about its usage in each language's documentation.

----

https://en.cppreference.com/w/cpp/keyword/else

{{wp>else}}

{{navbar_reserved_words}}

{{navbar_programming}}

{{navbar_footer}}