How to check if statement is null - Procedures

Started by ChickenMission on Fri, 06/25/2021 - 18:13

Topic category: Help with modding (Java Edition)

Last seen on 19:46, 27. Jun 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check if statement is null - Procedures
Fri, 06/25/2021 - 18:13

Hey, is there a way to check for a statement that doesn't return null in the mcreator procedure. if x == [codesnippet"(null)"] doesn;t work, it still throws the error.

 

Thanks!

Last seen on 22:43, 31. Jul 2021
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
X is a double value. It…
Fri, 06/25/2021 - 19:04

X is a double value. It simply can't be null. Could you give some more elaboration of your use case? The error it throws, maybe?