Download

Material Blueprint if a > b return a?

Newbee question. I’m trying to pulse the emissive light of a material. I want a smooth transition from a light color to a dark color (same color). I have an example using sine as a function of time which works but the color passes through black which isn’t what I want. I think this is because the result of sine is == to 0 as it progresses. I would like to check the value of sine and compare it with 0 and return 0.1. If its > or < 0 then return sine. I need some kind of body to the if statement but can’t find anything appropriate. The material blue print editor is very different from the standard blueprint editor. There don’t seem to be the same features e.g. I can’t declare variables. Am I going about this the wrong way?

Easiest way is like this:

](filedata/fetch?id=1859564&d=1612529785)
or