Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Pangaea/Artisan Jars vs Kegs
(view source)
Revision as of 19:29, 9 September 2022
304 bytes added
,
19:29, 9 September 2022
Not confusing at all...
Line 5:
Line 5:
<code><nowiki>{{#expr: expression }}</nowiki></code><br/>
<code><nowiki>{{#expr: expression }}</nowiki></code><br/>
<code><nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki></code><br/>
<code><nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki></code><br/>
+
<code><nowiki>{{#iferror: test string | value if error | value if correct }}</nowiki></code><br/>
====Simple test====
====Simple test====
Line 21:
Line 22:
{{ #arraydefine: jarday | 300 }}
{{ #arraydefine: jarday | 300 }}
−
{{ #arraydefine: kegday |
200
}}
+
{{ #arraydefine: kegday |
400
}}
{{#ifexpr: {{ #arrayprint: jarday }} > {{ #arrayprint: kegday }} | The preserves jar is most profitable | The keg is most profitable }}
{{#ifexpr: {{ #arrayprint: jarday }} > {{ #arrayprint: kegday }} | The preserves jar is most profitable | The keg is most profitable }}
−
+
{{ #arraydefine: jarday | 300 }}
−
{{#ifexpr: {{ #arrayprint: jarday }} > {{ #arrayprint: kegday }} | The preserves jar is +{{ #expr: ({{#arrayprint: jarday }}-{{#arrayprint: kegday }}) / {{#arrayprint: kegday }} *100 }}% more profitable | The keg is +{{ #expr: ({{#arrayprint: kegday }}-{{#arrayprint: jarday }}) / {{#arrayprint: jarday }} *100 }}% more profitable }}
+
{{ #arraydefine: kegday | xx }}
−
+
{{#iferror: {{#ifexpr: {{ #arrayprint: jarday }} > {{ #arrayprint: kegday }} }} | MOTHER OF GOD, THERE WAS AN ERROR!!!1!! |
{{#ifexpr: {{ #arrayprint: jarday }} > {{ #arrayprint: kegday }} | The preserves jar is +{{ #expr: ({{#arrayprint: jarday }}-{{#arrayprint: kegday }}) / {{#arrayprint: kegday }} *100
round 2
}}% more profitable | The keg is +{{ #expr: ({{#arrayprint: kegday }}-{{#arrayprint: jarday }}) / {{#arrayprint: jarday }} *100
round 2
}}% more profitable }}
}}
Pangaea
62
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
User contributions
Logs
View user groups
Upload file
Special pages
Printable version