Bool MainCockpit and MainRemoteControl don't work

Twotwinbrothers shared this bug 5 years ago
Outdated

This will not work.


if (pit.MainCockpit==true){
}
if (pit.MainRemoteControl==true){
}
i do it stil like this:
if (pit.GetValue<bool>("MainCockpit")){
}
if (pit.GetValue<bool>("MainRemoteControl")){
}
shoul be nice if it

Best Answer
photo

You may want to clarify your post a bit. It appears you mistyped or may not have known some information.

if (pit.isMainCockpit==true) { } // does work. Note the "is" in there.

Replies (2)

photo
1

You may want to clarify your post a bit. It appears you mistyped or may not have known some information.

if (pit.isMainCockpit==true) { } // does work. Note the "is" in there.

photo
1

do i have to add the "Is"in there.

O was that is logical, not,

but thanks it wil work wen it is in there.


why can i edit my original post the pensil is gone.

photo
photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file