Replace all data with true and missing with false

sHasan
sHasan New Altair Community Member
edited November 2024 in Community Q&A

hi,

is there a way to replace all data with TRUE and all mising values with FALSE

Best Answer

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓

    Hi @sHasan,

     

    sure. Generate Attributes can do the trick. Just use:

     

    if(missing([My Attribute]),TRUE,FALSE)

     

    Best,

    Martin

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓

    Hi @sHasan,

     

    sure. Generate Attributes can do the trick. Just use:

     

    if(missing([My Attribute]),TRUE,FALSE)

     

    Best,

    Martin

  • sHasan
    sHasan New Altair Community Member

    Thanks for the help Really appreciate it