Explain, please, in words what this record means.
direction == 1 && (offset=0)
Is it possible to rewrite it in a more familiar form, for example, through a conditional structure?
Explain, please, in words what this record means.
direction == 1 && (offset=0)
Is it possible to rewrite it in a more familiar form, for example, through a conditional structure?
Check the value of direction and if it is equal to 1 , then set the offset to 0 ;
whole expression
about rewrite, depending on how it is used. This is possible, but there will be an extra assignment and the offset must be declared in advance.
((offset=direction==1?0:offset) && false)
so
if (direction==1) offset=0;
but then the result of the verification direction will not return.
Source: https://ru.stackoverflow.com/questions/235299/
All Articles