Generate Attribut with mathematical different functions within

norita
norita New Altair Community Member
edited November 2024 in Community Q&A
Hi

I want to generate a new attribute like this:

if([Natrium.cat]=="3"||[BDsys]>="140"||[hp.rep]=="1"||[cevd.rep]=="1",1,0)

The errror signal was:
'>=' must have arguments of the same type.

Is there an easy way to fix this?


Tagged:

Best Answer

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    yes, remove the " around your numbers. At least one of your columns you check for is a numerical and not a nominal.

    Best,
    Martin

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    yes, remove the " around your numbers. At least one of your columns you check for is a numerical and not a nominal.

    Best,
    Martin