❔ ✅ Why is this true?
I want to check as if
file.Length
less than 10000..but why do the expression is true, file.Lenght
is more than 1000040 Replies
it isn't
yeah, exactly...what when wrong with the code?
if it is false, then the debug would turn red
i don't know, you're not really telling us what's happening
okay, the code is
based on the picture I mention, it represent
file.Length
is 1493519..which is more than 10000..
Supposedly, it will be false, yet it turns out true..
My question is why? and how to solve this?
_
wait, you guys can see the picture I gave right? because, the picture explains everything that I dont even need to put any description 😆
That would be awkward if you don't gets the picture hahahadoes it actually enter the
if
clauseit doesn't turn out true, that's just not possible
exactly
yep...it does..I dont want it to turn true..I want that scenario goes false
take a look on this picture
can you provide some proof
it cannot enter the if clause. that is not possible.
you're iterating there, so you're not just comparing 1 string
wait? compare string?
I made a condition between both are value.. 😕
they didn't read your code right
you're fine
In case you don't know,
Visual Studio .NET will made debug info red if it is false
no it doesn't?
hahaha, then how to make them right? hahaha 😆
what are you talking about
if you're looking at local variables, the red indicates it's changed
this is assuming we're talking about the same thing
but on the matter at hand, can you provide a screenshot where it actually enters the
if
clauseI mean this
changed, not true/false
what part of that indicates true or false lol
This means it HIT that logic check
it does not mean it evaluates to true
I mean, take a look down there..not there haha
all I want to see is you running to line 53 and showing the local variables
alright, wait
Nothing here states that it evaluates to true
?
set a breakpoint at line 54
i'm about to explode
lmao
alright
If it does break at line 54, that means that condition evaluates to true, otherwise it would not have hit that breakpoint.
thats weird, it skips
rarararara.pdf
(you can see the filename down there)
but when I remove if clause, it does run along with rararrarara.pdf
why would that be?
ohhh, i figure it out
thanks for helping...the issue is the below codes...
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.