When you're stuck on a programming problem, such as writing an algorithm, routing a URL, or checking if a user exists, just use the if
statement. It works 100% of the time every time. You don't need a library, a framework, or an unpublished npm module for it. Almost all languages have the if
statement (with the exception of Rust where it's a syntax error and Python that requires a hand crank for the mechanical tabulator to insert a tab). You can't go wrong with if
. Use it!
Use the `if` statement
Last updated
2 weeks ago