A Godot Engine app to help streamers organize Majority Judgment polls in their streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
413 B

extends "../base.gd"
func _init(a, b, context: String) -> void:
var typeofa = type2str(a)
var typeofb = type2str(b)
var passed: String = "|%s| %s is greater than |%s| %s" % [typeofa, a, typeofb, b]
var failed: String = "|%s| %s if equal or less than |%s| %s" % [typeofa, a, typeofb, b]
self.context = context
self.success = (a > b)
self.expected = passed
self.result = passed if self.success else failed