Shader syntax error? Solved

Ignore this i had an 'i’f before defining dist
This code in the shader lab

float dist=(size-raysize)/d;

Is giving me the error

'float' : syntax error

Why is this?(have I missed something stupid?)
Edit: size&raysize are float uniforms defined with decimals and d is a float defined in the shader

@Coder Uniform floats are no different that static floats custom made in the shader, it shouldn’t be the source pf the problem.

We need the entire shader to find the problem, not just the one line that has the error. Errors in the shader lab are usually made by other lines of code.

Yep sorry i was sure it was that line but i had commented out code above so I couldn’t see there was a random if before defining the variablw