### Serve openLCA 2 Manual Locally with mdBook Source: https://github.com/greendelta/openlca2-manual/blob/main/README.md Navigate to the project directory and run the serve command to preview the manual locally. The --open flag automatically opens the manual in your default browser. ```bash cd PATH/TO/openLCA2-manual mdbook serve --open ``` -------------------------------- ### Build openLCA 2 Manual with mdBook Source: https://github.com/greendelta/openlca2-manual/blob/main/README.md Navigate to the project directory and run the build command to compile the manual. ```bash cd PATH/TO/openLCA2-manual mdbook build ``` -------------------------------- ### Ceiling Function for Integer Calculation Source: https://github.com/greendelta/openlca2-manual/blob/main/src/parameters/dependent_parameter.md Use the `ceil()` function to find the smallest integer not less than a given number. Useful for calculations involving discrete units like containers. ```openLCA full_containers = ceil(total_volume / container_volume) ``` -------------------------------- ### Conditional Logic with IF Function Source: https://github.com/greendelta/openlca2-manual/blob/main/src/parameters/dependent_parameter.md Employ the `if(b;x;y)` function to return value `x` if condition `b` is true, otherwise return `y`. Ideal for setting results based on specific criteria. ```openLCA result = if(condition; value_if_true; value_if_false) ``` -------------------------------- ### Calculate Total Cost with Production Volume and Wastage Source: https://github.com/greendelta/openlca2-manual/blob/main/src/parameters/dependent_parameter.md This formula calculates the total cost, considering production volume and wastage. It uses and() and if() functions to apply different cost calculations based on specified conditions. ```openLCA formula total_cost = if(and(production_volume>500;wastage>30); (production_cost_per_unit - (production_volume+wastage));production_cost_per_unit*production_volume) ```