Error FEHLER Validierungsfehler Beim Verarbeiten des Ausdrucks "randomNumber" ist mindestens ein Compilerfehler aufgetreten. "Option Strict On" lässt keine impliziten Konvertierungen von Integer in Boolean zu. „Zahlen raten“.xaml

Error FEHLER Validierungsfehler Beim Verarbeiten des Ausdrucks “randomNumber” ist mindestens ein Compilerfehler aufgetreten.
“Option Strict On” lässt keine impliziten Konvertierungen von Integer in Boolean zu. „Zahlen raten“.xaml

@isaac.djiki

Welcome to the community

As per error we see that you are trying to access integer variable as boolean or trying to use it in a condition.

Please check the same by runnin gin debug mode …and then check where it is failing…

If you are unable to please attach the process or screenshots mentioning where it is failing and what variables you are using

Cheers

Error ERROR Validation error At least one compiler error occurred while processing the expression “randomNumber”.
“Option Strict On” does not allow implicit conversions from integer to boolean. “Guess numbers”.xaml

In both cases there is a missmatch on datatypes, often caused by a statement returning a differenone as defined / modelled.

Jedoch wäre es besser, wenn Du mit uns weitere Details deiner Implementierung mitteilst. Wir hätten dann auch eine Chance die konkreten Statrements zu sehen und können Dir besser bei der Korrektur helfen.

When defining an int32 Variable we have to stay strickt within the datatype

grafik
here the default value implemented an expression, which returns a boolean and therefore it is conflicting with the int32 datatype

Use seperate vars to store the evaluation result
OR
do it on parts, where it can be used directly

still dont get exactly what to do.You it is my first Bot that you see.Thxs

we would assume the following:

generate a random number
ask the user for a number

compare random number and user number

when doing the compare, used it as a condition within a the flow decision or assign it to a boolean variable

will work:
IchBinWahrFalsch = MeineNummer1 > MeineNummer2

will not work
IchBinEineNummer = BinGrösser MeineNummer2

@isaac.djiki

As per screenshot …the variables are integer but you are trying to assign a condition there…

Instead what you can try is…let them be the numbers itself

in the flow decisions please use randomnumber > userinputnumber something like this…this will compare two numbers and will give yes or no/True or false

Hope this helps

cheers


now it work but only show me one message .think at somthing bigger .No matter how bigger the Number i enter

Just like an infinit loop

@isaac.djiki

We can help if you share th xaml …

Cheers

Main.xaml (3.2 KB)
ok hier ist it.thxs

@isaac.djiki

I guess you attached a wrong file

cheers

Main(Automatisch gespeichert).xaml (3.8 KB)
isit not this one?get an eyes on it pls.