---
name: "Error Generic Error in Expression"
type: topic
source: https://community.bistudio.com/wiki/Error_Generic_Error_in_Expression
revid: 363360
updated: 2024-03-27T12:35:11Z
---

# Error Generic Error in Expression

This error occurs when the type of data an operator is expecting does not match.

**Compatibility:**

Version **1.96**

**Example:**

```sqf
_myString = "The meaning of life is " + 42;                    // error
_myString = "The meaning of life is " + str 42;                // OK
_myString = "The meaning of life is " + format ["%1", 42];    // OK - OFP
```

<sub>Source: [BI Community Wiki — Error Generic Error in Expression](https://community.bistudio.com/wiki/Error_Generic_Error_in_Expression) (revision 363360).</sub>
