if statement syntax
Posted: Sun Feb 26, 2017 7:10 pm
I'm adding some recipes into a mod of mine that are dependent on stuff in another persons' mod(s). I'm getting an error though on my if statements that check before adding a recipe
Is there something wrong with my syntax? Does the if statement have to be outside of the ?
Code: Select all
if data.raw.fluid["lithia-water"] then
{
type = recipe,
name = "void-lithia-water",
category = "void-liquid",
(etc, etc)
end
Code: Select all
data:extend