Q:

Verilog LED Blinking no syntax errors. why it is not blinking

I wrote the program for blink 8 raw LEDs and code has not any errors and it is properly loaded. But blinking LEDs is not happen properly.
I checked pin planner and it was correct and clock I used is 50MHz. I am using the DE10 lite board.
module LED_blink(clk,led);
    input clk;
    output reg[7:0] led;
    reg[31:0] count = 0;
    always @(posedge clk)
      begin
        count <= count + 1;
        led <= (count<50000000) ? 8'b11111111 : 0;
        count <= (count<50000000) ? count : 0;      
      end
endmodule

There are no error messages but it is not working the way I assumed.

A:

You should get the habit of simulating your code with a testbench before running it on an FPGA. But in this case even a simple Rubber Duck Debugging shows the errors.
When you execute count<=(count<50000000)?count:0; you override the previous count<=count+1;, thus the count will never increment.
This can be easily fixed by changing the 2 lines to: 
count<=(count<50000000)?count+1:0;

The second problem is that led will be 0 only for one clock cycle (when count is equal to 50000000), practically you won't see any blinking.
This can be easily fixed by changing the line to: 
led<=(count<25000000)?8'b11111111:0;

