{"name":"Error Generic Error in Expression","title":"Error Generic Error in Expression","type":"topic","url":"https://community.bistudio.com/wiki/Error_Generic_Error_in_Expression","revid":363360,"updated":"2024-03-27T12:35:11Z","aliases":[],"markdown":"This error occurs when the type of data an operator is expecting does not match.\n\n**Compatibility:**\n\nVersion **1.96**\n\n**Example:**\n\n```sqf\n_myString = \"The meaning of life is \" + 42;                    // error\n_myString = \"The meaning of life is \" + str 42;                // OK\n_myString = \"The meaning of life is \" + format [\"%1\", 42];    // OK - OFP\n```","sections":[{"heading":null,"level":1,"markdown":"This error occurs when the type of data an operator is expecting does not match.\n\n**Compatibility:**\n\nVersion **1.96**\n\n**Example:**\n\n```sqf\n_myString = \"The meaning of life is \" + 42;                    // error\n_myString = \"The meaning of life is \" + str 42;                // OK\n_myString = \"The meaning of life is \" + format [\"%1\", 42];    // OK - OFP\n```"}],"categories":["Common Scripting Errors"],"groups":["Scripting"]}