--- title: "A not eq B" slug: "flogicfunction-3" updated: 2021-12-16T08:20:17Z published: 2021-12-16T08:20:17Z canonical: "docs.datajet.app/flogicfunction-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # A not eq B ## FLogic: A!=B ## Creates a flag field with value 1 where input A is not equal to input B, and value 0 where the inputs do match ## Purpose Use this function to: - Identify and flag non-matching records - Calculate A<>B - Calculate A != B - Calculate A not equal to B ## Return Value | Property | Value | | --- | --- | | **FieldType** | Integer | | **FieldSize** | Low | | **DataType** | Discrete | | **DataSize** | Byte | ```shell Example Return Value: 0, 1, null ``` ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/FLOG_NotEq_Sample.PNG) ## Parameters | Parameter | JSON | Description | | --- | --- | --- | | **Table** | “targetTable”: “MyTableName” | The target table on which the new field will be created | | **Filter** | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter recordset will be returned as null. | | **Function** | "function”: “flogic” | FLogic | | **Logic Functio****n** | "p1":"A!=B" | A!=B | | **A** | “p2”: “FieldName” “p2”: “#N*.N*” “p2”: “#N*” “p2”: “#MyString” “p2”: “#YYYY-MM-DD” | Required. Field or value to compare with value B *Supports:* - **DataType:** Discrete / Continuous - **Field Type:** Any - **Fixed Value:** #N* e.g. #201596, #-87 - **Fixed Value:** #N*.N* e.g. #201596.05, #-87.98 - **Fixed Value:** #MyStringValue e.g. #Product1 #-This is also a valid string - **Fixed Value:** #YYYY-DD-MM e.g. #2021-12-06 | | **B** | “p2”: “FieldName” “p2”: “#N*.N*” “p2”: “#N*” “p2”: “#MyString” “p2”: “#YYYY-MM-DD” | Required. Field or value to compare with value A *Supports:* - **DataType:** Discrete / Continuous - **Field Type:** Any - **Fixed Value:** #N* e.g. #201596, #-87 - **Fixed Value:** #N*.N* e.g. #201596.05, #-87.98 - **Fixed Value:** #MyStringValue e.g. #Product1 #-This is also a valid string - **Fixed Value:** #YYYY-DD-MM e.g. #2021-12-06 | Special test cases - To test for null, use **#null** - To test for an empty string, use **#** ## JSON Sample ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/FLOG_NotEq_JSON.PNG) ## Usage Notes See Also: - Engineering | Expression Field - A=B   (FLogic) ## Example | Example | Details | | --- | --- | | **Description** | Flag all direct employees | | **Input** | - Table: = [customer] - Filter: = [No Filter] - Function: = FLogic - **Logic** **Function** **= A!=B** - A:= [customer ].[occupation] - B:= #freelance - Name: = DirectEmployee | | **Sample** | ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/FLOG_NotEq_Example.PNG) |