A
A
Akigami2019-04-14 17:13:52
Programming
Akigami, 2019-04-14 17:13:52

How would such a condition be implemented in a programming language?

I’m confused with the logic, how will such a condition be implemented in any popular language? (as an example) I, in turn, need to implement this on papyrus, but I think it’s unlikely that anyone knows this language, although ...
We have n objects, the user selects one of the objects, there is a check that this object has another object of a given type, if there is such an object, then display a message to the user.
I can’t understand how to check not for a specific object, but for the type of objects

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ernest Faizullin, 2019-04-14
@Akigami

typeof, or an analogue
of type checking, if I understand correctly
, it is important to understand what you mean by the concept of "object type"

K
Konstantin Tsvetkov, 2019-04-14
@tsklab

If Object[user_chosen].Object.Type = That_else_type then Say("Oops!")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question