Use the full string as I posted it. #NDATAON# just tells if data is on or not. It's used as a condition to decide if #NCCONNS# should be displayed (if #NDATAON#=1) or not (if #NDATAON#=0).

When I'm on wifi it says 1 its normal ? When I put wifi and data off it says to me 0 that's ok but one thing I don't understand its after if I choose the variable #NCSTATE# it shows me 3 who says "connected" normally this would be also on 0 if everything is off ?

When I'm on wifi it says 1 its normal ? When I put wifi and data off it says to me 0 that's ok but one thing I don't understand its after if I choose the variable #NCSTATE# it shows me 3 who says "connected" normally this would be also on 0 if everything is off ?

In that case I misread the documentation for the variable. I thought it meant cellular data but it seems to be for either cellular or wifi. In that case we just have to test for wifi too:

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?