Replace "true" with numeric value

I’m trying to replace true values with a number, and false values with 0 but cannot get the replace function to work?


within domain help.gh (26.2 KB)

within domain help.gh (14.7 KB)

Similar approach to @Quan_Li:

1 Like

Key Value Search is a way easier component here

1 Like

For full list matching :

ValueToValue.gh (9.4 KB)

Also Pick'n'Choose is what I use to change a true/false to other objects (like an if/then/else statement).

1 Like