This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:discrete:fall2021:projects:pnf1 [2021/09/09 02:59] – Fixed up spacing of sections on page smalik3 | notes:discrete:fall2021:projects:pnf1 [2021/09/09 03:59] (current) – [Prime Detection Algorithm] mbrill1 | ||
---|---|---|---|
Line 116: | Line 116: | ||
An if statement can be used to accept two conditions instead of just one. In Lua, this is accomplished with `and.` As an example, `if a==2 and b==3 then` only performs an action if a=2 and b=3. This is useful for having multiple menus and deciding which sub-menu to display. It can also be used in conjunction with Optional Functionality. | An if statement can be used to accept two conditions instead of just one. In Lua, this is accomplished with `and.` As an example, `if a==2 and b==3 then` only performs an action if a=2 and b=3. This is useful for having multiple menus and deciding which sub-menu to display. It can also be used in conjunction with Optional Functionality. | ||
+ | |||
+ | ====Break On Composite Algorithm==== | ||
+ | |||
+ | The idea of the "break on composite algorithm", | ||
====Display==== | ====Display==== | ||