How to split "and' & "or"

Hi guys,

Do you know if there is a way to split “and” & “or” in robot framework?

i.e
As is
{A014000004} Run Keyword If ... '{STATE}’ == ‘PASS’ and {ALL8222} >= 36 and {ALL8222} < 9991 and {ALS2000} >= 2 and {ALS2000} < 91 and {IQT9416} < 4 and (({ILN0316} >= 0 and {ILN0316} <= 1) or ({ILN0316} >= 98 and {ILN0316} <= 99)) and ({ALL2387} == 0 or {ALL2387} == 97 or {ALL2387} == 99) and ({ALL2120} == 0 or {ALL2120} == 99) and {REV5030} >= 5000 and {REV5030} < 999999990 and {RM_AF} >= 640 and {RM_AF} <= 850
… Set Variable True
… ELSE
… Set Variable False
[Return] ${A014000004}

Could be?
{A014000004} Run Keyword If ... '{STATE}’ == ‘PASS’
… and {ALL8222} >= 36 ... and {ALL8222} < 999
… and {ALS2000} >= 2 ... and {ALS2000} < 91
… and {IQT9416} < 4 ... and (({ILN0316} >= 0
… and {ILN0316} <= 1) ... or ... ({ILN0316} >= 98
… and {ILN0316} <= 99)) ... and ({ALL2387} == 0
… or
{ALL2387} == 97 ... or ... {ALL2387} == 99)
… and ({ALL2120} == 0 ... or ... {ALL2120} == 99)
… and {REV5030} >= 5000 ... and {REV5030} < 999999990
… and {RM_AF} >= 640 ... and {RM_AF} <= 850
… Set Variable True
… ELSE
… Set Variable False
[Return] ${A014000004}

is it doable?

Here is your original code, in a reproducible way:

*** Variables ***
${ALL8222}        19
${ALS2000}        9
${IQT9416}        2
${ILN0316}        0.5
${ALL2387}        97
${ALL2120}        99
${REV5030}        50990
${RM_AF}          740

*** Test Cases ***
Condition call
    Call me

*** Keywords ***
Call me
    ${A014000004}=    Run Keyword If    "PASS" == "PASS" and ${ALL8222} >= ${36} and ${ALL8222} < ${9991} and ${ALS2000} >= ${2} and ${ALS2000} < ${91} and ${IQT9416} < ${4} and ( ( ${ILN0316} >= 0 and ${ILN0316} <= ${1} ) or ( ${ILN0316} >= ${98} and ${ILN0316} <= ${99} ) ) and ( ${ALL2387} == 0 or ${ALL2387} == ${97} or ${ALL2387} == ${99} ) and ( ${ALL2120} == 0 or ${ALL2120} == ${99} ) and ${REV5030} >= ${5000} and ${REV5030} < ${999999990} and ${RM_AF} >= ${640} and ${RM_AF} <= ${850}    Set Variable    True
    ...    ELSE    Set Variable    False
    [Return]    ${A014000004}

After confirming that code is OK like this, reformatted with line continuation but RIDE corrected to cell separation, so it failed after that.

This is how it looks on Grid Editor:

You can split the multiple conditions using braces. The conditions inside the braces will get resolve first and then others.