Hey guys, so I really need some help to make this substance work. I'm trying to make some wood panels like on a wall, mixing up two wood materials. I've got the basic concept down of what I'm trying to do, but using some of the math nodes is messing me up.

For example, I need the "Random" value to be a whole number, not an float.

I also need an operation to happen only when the number of tiles is an even number. I have absolutely no idea how to go about doing this.

Sorry if it's hard to understand what I'm trying to say, I'm pretty bad at explaining stuff. Hopefully it makes more sense if you look at my graph. It's on the "Offset" of the "Transform 2D" node to the far left.

Thanks in advance for any help.

For example, I need the "Random" value to be a whole number, not an float.

I also need an operation to happen only when the number of tiles is an even number. I have absolutely no idea how to go about doing this.

Sorry if it's hard to understand what I'm trying to say, I'm pretty bad at explaining stuff. Hopefully it makes more sense if you look at my graph. It's on the "Offset" of the "Transform 2D" node to the far left.

Thanks in advance for any help.