If your new to programming, this will be a great tutorial for the fundamentals of programming logic. An if statement is one of a few ways to do something when a condition is set. It helps control the flow of your coding logic. page
In English:
> If you are thirsty, take a drink.
jsCode := ' var thirsty = true; var drank = false; if(thirsty == true) //notice the == { drank = true; document.write(drank); }'. memfs := FileSystem memory. file := memfs / 'test.js'. file writeStreamDo: [:stream| stream nextPutAll: jsCode]. model := (GtJSImporter new importDirectory: file parent) model
**//FIXME**: extract `jsCode` and display result in a frame (`esm.html`). Cf. If Statements
Navigation
Root folder
Parse with JSParser
ifToken
{if(41,42,#(78 118 119))}
Sometimes Unix pipe operator and streams and filters are the right tool for the job. This page may grow into a collection of interesting combinations.
> Kent Beck demonstrates that distribution of If Statements in a code base follows a power law. article
DOT FROM lambda-browsing